diff --git a/src/api/BasicData/MenuManagement.js b/src/api/BasicData/MenuManagement.js index 1a121815..a2ea3311 100644 --- a/src/api/BasicData/MenuManagement.js +++ b/src/api/BasicData/MenuManagement.js @@ -110,3 +110,21 @@ export function submitAdd(name) { } }) } +// 查询二级模块分给那些角色 +export function searchJS(name) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '3', + name: ` select 角色功能,title from + 基础表_模块信息 inner join 基础表_角色模块信息 on 基础表_角色模块信息.id = 基础表_模块信息.id + inner join 菜单系统模块_项目角色 on 基础表_角色模块信息.角色编号 = 菜单系统模块_项目角色.角色编号 + order by title`, + param: `模块名称=${name}` + } + }) +} + diff --git a/src/api/PurchasingCenter/PurchaseContractRequestFund.js b/src/api/PurchasingCenter/PurchaseContractRequestFund.js index 228aa296..740972f8 100644 --- a/src/api/PurchasingCenter/PurchaseContractRequestFund.js +++ b/src/api/PurchasingCenter/PurchaseContractRequestFund.js @@ -113,3 +113,28 @@ export function searchPurchaseContract(check1, check, num) { } }) } +// 请款审批查看状态 +export function RequestFund() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '采购管理_离线合同_请款查看状态_查询数据' + } + }) +} +export function setChakan2() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '采购管理_离线合同_更新查看状态_修改数据' + } + }) +} diff --git a/src/utils/curd.js b/src/utils/curd.js index 297b279a..56851b61 100644 --- a/src/utils/curd.js +++ b/src/utils/curd.js @@ -13,8 +13,8 @@ export default { // 1)type:11查询;12增删改,必须 // 2)name:存储过程名,必须 // 3)data:存储过程参数名和对应值,例如: - // this.param[0] = ['设备类型编码', '3', 'string', '0'] - // this.param[1] = ['output', '3', 'int', '1'],必须 + // param[0] = ['工艺计划流水号', this.工艺计划流水号] 输入参数 + // param[1] = ['PageCurrent', '1111', 'int', '1'] output参数 // 数组里四个分别对应:存储过程参数名(必须);存储过程参数值(必须);参数类型(若是output必须);参数是否为output(0否1是) // 4)pageSize,pageList:分页使用,可选 Vue.prototype.CreateData = function(type, name, data, pageSize, pageList) { diff --git a/src/views/BasicData/MenuManagement/index.vue b/src/views/BasicData/MenuManagement/index.vue index 95b6274a..b97ecd55 100644 --- a/src/views/BasicData/MenuManagement/index.vue +++ b/src/views/BasicData/MenuManagement/index.vue @@ -377,4 +377,3 @@ export default { padding-right: 8px; } - diff --git a/src/views/ManufacturingCenter/InitialProduction/index.vue b/src/views/ManufacturingCenter/InitialProduction/index.vue index 9b634a73..c2ec74fa 100644 --- a/src/views/ManufacturingCenter/InitialProduction/index.vue +++ b/src/views/ManufacturingCenter/InitialProduction/index.vue @@ -10,7 +10,7 @@ - + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -371,7 +371,7 @@ - + @@ -531,16 +531,16 @@ export default { // if (to.name === 'InitialProduction') { // _this.typeChange() // } + // }, + // '$route': { + // handler(route) { + // const _this = this + // console.log(route.name) + // if (route.name === 'InitialProduction') { + // _this.typeChange() + // } + // } // } - // // '$route': { - // // handler(route) { - // // const _this = this - // // console.log(route.name) - // // if (route.name === 'InitialProduction') { - // // _this.typeChange() - // // } - // // } - // // } // }, created() { this.typeChange() @@ -1347,7 +1347,7 @@ export default { margin: 10px 0 10px 10px; } .time{ - width: 200px; + width: 150px; } .Time>.el-form-item{ margin:2px; @@ -1373,4 +1373,3 @@ export default { margin-bottom: 13px; } - diff --git a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue index e9f97ea5..7a0743bc 100644 --- a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue +++ b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue @@ -496,6 +496,7 @@ export default { }) }, rowClick(row) { + this.radio = '' searchtable(1, row.项目流水号, 1, row.机床流水号, 0, 0, 0, '', '', 0, '', '', 1, 100).then(response => { if (response.data.total !== 0) { this.machineNum = row.机床图号 diff --git a/src/views/ManufacturingCenter/ScheduleCompletionDetails/index.vue b/src/views/ManufacturingCenter/ScheduleCompletionDetails/index.vue index 5d165062..220a7e4a 100644 --- a/src/views/ManufacturingCenter/ScheduleCompletionDetails/index.vue +++ b/src/views/ManufacturingCenter/ScheduleCompletionDetails/index.vue @@ -19,7 +19,7 @@ 查询 - + @@ -32,7 +32,7 @@ {{ scope.row.总数量 }} - + @@ -42,7 +42,7 @@ - + @@ -58,10 +58,10 @@ - + - + @@ -86,12 +86,12 @@ - + - + @@ -101,7 +101,7 @@ {{ scope.row.修补工时 }} - + @@ -111,7 +111,7 @@ {{ scope.row.完成日期 }} - + diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue index 57e2369f..bb3b5976 100644 --- a/src/views/layout/components/Navbar.vue +++ b/src/views/layout/components/Navbar.vue @@ -32,7 +32,7 @@ import { getMaterial, getMaterial_NOTES, setChakan } from '@/api/PurchasingCente import { initApproval, initApprovalOffline } from '@/api/PurchasingCenter/FundApproval' import { searchUrgentItem } from '@/api/ManufacturingCenter/InitialProduction' import { searchTable1 as searchTableInvoice } from '@/api/PurchasingCenter/InvoiceSettlementApprove' -import { searchRequestFund } from '@/api/PurchasingCenter/PurchaseContractRequestFund' +import { RequestFund, setChakan2 } from '@/api/PurchasingCenter/PurchaseContractRequestFund' import { getPickingList, setPickingList } from '@/api/Inventory/MaterialOut' import { searchTable } from '@/api/PurchasingCenter/PurchaseMaterielModify' export default { @@ -126,14 +126,14 @@ export default { } }) if (this.token.toString() === '2') { - searchRequestFund(1, 9999, 0, 0, 0, 0, 0).then(res => { - if (res.data.length) { + RequestFund().then(res => { + if (res.data[0].数量 > 0) { this.noticeContract2 = null this.noticeContract2 = this.$notify.success({ title: '提示', message: '有合同请款申请审批结果,点击查看', onClick: () => { - setChakan().then(res => { + setChakan2().then(res => { this.$router.push({ path: '/PurchasingCenter/PurchaseContractRequestFund' }) setTimeout(this.noticeContract2.close(), 1000) }) @@ -159,14 +159,14 @@ export default { } }) } else if (this.token.toString() === '3') { - searchRequestFund(1, 99999, 0, 0, 0, 0, 0).then(res => { - if (res.data.length) { + RequestFund().then(res => { + if (res.data[0].数量 > 0) { this.noticeContract4 = null this.noticeContract4 = this.$notify.success({ title: '提示', message: '有合同请款申请审批结果,点击查看', onClick: () => { - setChakan().then(res => { + setChakan2().then(res => { this.$router.push({ path: '/PurchasingCenter/PurchaseContractRequestFund' }) setTimeout(this.noticeContract4.close(), 1000) })