Merge branch 'dev-cq' of http://192.168.0.56:3000/bonus/devicesmgt into dev-cq

This commit is contained in:
BianLzhaoMin 2024-06-13 17:17:09 +08:00
commit 86e5ff1515
4 changed files with 12 additions and 2 deletions

View File

@ -17,6 +17,7 @@
@change="GetProData"
style="width: 240px"
placeholder="请选择"
:disabled="isEdit"
>
<el-option
v-for="item in unitList"
@ -35,6 +36,7 @@
@change="GetUnitData"
style="width: 240px"
placeholder="请选择"
:disabled="isEdit"
>
<el-option
v-for="item in proList"
@ -277,6 +279,9 @@ export default {
agreementId: {
type: [String, Number],
},
isEdit: {
type: Boolean,
},
},
data() {
const validatePhone = (rule, value, callback) => {

View File

@ -10,6 +10,7 @@
:is="isShowComponent"
:rejectId="rejectId"
:agreementId="agreementId"
:isEdit="isEdit"
@returnApply="returnApply"
@rejectSubmit="rejectSubmit"
@goBackPage="goBack"
@ -36,6 +37,7 @@ export default {
rejectId: '',
agreementId: '',
isView: false,
isEdit: false,
}
},
methods: {
@ -44,11 +46,13 @@ export default {
this.rejectId = ''
this.pageContent = '新建退料任务'
this.isShowComponent = 'AddReturn'
this.isEdit = false
},
//
rejectSubmit({id, agreementId}) {
this.rejectId = id
this.agreementId = agreementId
this.isEdit = true
this.pageContent = '编辑退料任务'
this.isShowComponent = 'AddReturn'
},

View File

@ -363,7 +363,7 @@ export default {
},
//
cancel() {
this.$refs.dynamicValidateFormTwo.clearValidate()
// this.$refs.dynamicValidateFormTwo.clearValidate()
this.dialogShowFlag = false
this.fileList = []
},

View File

@ -342,7 +342,8 @@
@selection-change="handleSelectionChange"
height="400"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column type="selection" width="55" align="center" :selectable="
(row, index) => row.status == '进行中' && row.userIds.includes(userId)" />
<el-table-column
label="序号"
align="center"