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

View File

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

View File

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

View File

@ -342,7 +342,8 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
height="400" 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 <el-table-column
label="序号" label="序号"
align="center" align="center"