Merge branch 'dev-cq' of http://192.168.0.56:3000/bonus/devicesmgt into dev-cq
This commit is contained in:
commit
86e5ff1515
|
|
@ -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) => {
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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 = []
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue