diff --git a/yxt-as-ui/src/views/maintenanceReceive/index.vue b/yxt-as-ui/src/views/maintenanceReceive/index.vue index 8f8c3de0b3..fa524f8d6c 100644 --- a/yxt-as-ui/src/views/maintenanceReceive/index.vue +++ b/yxt-as-ui/src/views/maintenanceReceive/index.vue @@ -75,8 +75,8 @@ - - + + @@ -280,22 +280,25 @@ export default { } }, toOut() { - // this.viewState = 2 if (this.sids.length === 1) { - this.viewState = 2 - this.$refs['divOutInfo'].showAdd(this.sids[0]) + if (this.selectionList[0].repairState === '维修中') { + this.viewState = 2 + this.$refs['divOutInfo'].showAdd(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择维修状态为维修中的记录进行操作' }) + } } else { - this.$message({ - showClose: true, - type: 'warning', - message: '请选择一条记录进行操作' - }) + this.$message({ showClose: true, type: 'warning', message: '请选择一条记录进行操作' }) } }, toReturn() { if (this.sids.length === 1) { - this.viewState = 3 - this.$refs['divReturnInfo'].showAdd(this.sids[0]) + if (this.selectionList[0].nodeName === '维修') { + this.viewState = 3 + this.$refs['divReturnInfo'].showAdd(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择维修单处于维修阶段的进行操作' }) + } } else { this.$message({ showClose: true, @@ -315,8 +318,7 @@ export default { req.printSettlement(info).then((res) => { if (res.success) { var xhr = new XMLHttpRequest() - xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + res.data + - '&outFileName=' + '领料单', true) + xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + res.data + '&outFileName=' + '领料单', true) xhr.setRequestHeader('token', getStorage()) xhr.responseType = 'blob' xhr.onload = function(e) { @@ -347,22 +349,14 @@ export default { }, toConfirm() { if (this.sids.length === 1) { - if (this.selectionList[0].repairState == '维修完成') { + if (this.selectionList[0].repairState === '维修完成' && this.selectionList[0].nodeName === '维修') { this.viewState = 4 this.$refs['divConfirmInfo'].showAdd(this.sids[0]) } else { - this.$message({ - showClose: true, - type: 'warning', - message: '只能选择维修完成的工单' - }) + this.$message({ showClose: true, type: 'warning', message: '请选择维修单处于维修阶段且维修状态为维修完成的进行操作' }) } } else { - this.$message({ - showClose: true, - type: 'warning', - message: '请选择一条记录进行操作' - }) + this.$message({ showClose: true, type: 'warning', message: '请选择一条记录进行操作' }) } }, doClose() { diff --git a/yxt-as-ui/src/views/maintenanceReceive/maintenanceConfirm.vue b/yxt-as-ui/src/views/maintenanceReceive/maintenanceConfirm.vue index 155a1c457c..fbead03c39 100644 --- a/yxt-as-ui/src/views/maintenanceReceive/maintenanceConfirm.vue +++ b/yxt-as-ui/src/views/maintenanceReceive/maintenanceConfirm.vue @@ -1,327 +1,215 @@ diff --git a/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue b/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue index 634f240940..a4a2f71cf3 100644 --- a/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue +++ b/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue @@ -12,22 +12,16 @@ -
* 操作人
- - {{ formobj.createByName }} - +
操作人
+ {{ formobj.createByName }}
-
* 操作部门
- - {{ formobj.deptName }} - +
操作部门
+ {{ formobj.deptName }}
操作日期
- - {{ formobj.createTime }} - + {{ formobj.createTime }}
@@ -47,65 +41,46 @@ -
维修工单
+
维修单
-
维修工单编号
- - {{ formobj.sourceBillNo }} - +
维修单编号
+ {{ formobj.sourceBillNo }}
单据日期
- - {{ formobj.billDate }} - + {{ formobj.billDate }}
服务顾问
- - {{ formobj.waitorName }} - + {{ formobj.waitorName }}
-
工单类型
- - {{ formobj.billType }} - +
维修单类型
+ {{ formobj.billType }}
科目
- - {{ formobj.subject }} - + {{ formobj.subject }}
是否外出
- - - - - - + {{ formobj.isGoOut == '1' ? '是' : '否' }}
客户名称
- - {{ formobj.customerName }} - + {{ formobj.customerName }}
车牌号/车架号
- - {{ formobj.vehMark }}/{{ formobj.vinNo }} - + {{ formobj.vehMark }}/{{ formobj.vinNo }}
-
服务项目
+
维修项目
@@ -113,7 +88,7 @@ 商品出库 - + @@ -129,7 +104,6 @@ - @@ -144,6 +118,7 @@ +
维修用料
@@ -162,7 +137,6 @@
- +
@@ -304,13 +279,10 @@ export default { this.formobj.createBySid = window.sessionStorage.getItem('userSid') this.formobj.createByName = window.sessionStorage.getItem('name') this.formobj.createTime = getCurrentDate() - getOrgSidByPath({ - orgPath: window.sessionStorage.getItem('defaultOrgPath') - }).then((res) => { + getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { if (res.success) { this.formobj.createOrgSid = res.data this.formobj.useOrgSid = res.data - // this.commodityQuery.params.useOrgSid = res.data } }) } else { diff --git a/yxt-as-ui/src/views/maintenanceReceive/maintenanceReturnBound.vue b/yxt-as-ui/src/views/maintenanceReceive/maintenanceReturnBound.vue index c034a71de9..3c64adec5a 100644 --- a/yxt-as-ui/src/views/maintenanceReceive/maintenanceReturnBound.vue +++ b/yxt-as-ui/src/views/maintenanceReceive/maintenanceReturnBound.vue @@ -82,12 +82,7 @@
是否外出
- - - - - - + {{ formobj.isGoOut == '1' ? '是' : '否' }}