|
|
|
|
@ -387,7 +387,7 @@ |
|
|
|
|
</el-form-item> --> |
|
|
|
|
<el-form-item label="供应商" prop="supplierId"> |
|
|
|
|
<el-select |
|
|
|
|
:readonly=" |
|
|
|
|
:disabled=" |
|
|
|
|
(dialogType == 'view' && addForm.applyStatus != 0) || |
|
|
|
|
(dialogType == 'examine' && addForm.applyStatus == 1) |
|
|
|
|
" |
|
|
|
|
@ -489,7 +489,7 @@ |
|
|
|
|
<el-table-column width="57px"> |
|
|
|
|
<template slot="header"> |
|
|
|
|
<el-button |
|
|
|
|
:readonly=" |
|
|
|
|
:disabled=" |
|
|
|
|
(dialogType == 'view' && addForm.applyStatus != 0) || |
|
|
|
|
(dialogType == 'examine' && addForm.applyStatus == 1) |
|
|
|
|
" |
|
|
|
|
@ -502,7 +502,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button |
|
|
|
|
:readonly=" |
|
|
|
|
:disabled=" |
|
|
|
|
(dialogType == 'view' && addForm.applyStatus != 0) || |
|
|
|
|
(dialogType == 'examine' && addForm.applyStatus == 1) |
|
|
|
|
" |
|
|
|
|
@ -632,7 +632,7 @@ |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col style="width: 90%; margin-left: 1%"> |
|
|
|
|
<p style="font-size: 14px; color: #606266">审批意见</p> |
|
|
|
|
<el-select v-model="examineValue" :readonly="(addForm.applyStatus == 2 || addForm.applyStatus == 3 || addForm.applyStatus == 4) && dialogType == 'view'"> |
|
|
|
|
<el-select v-model="addForm.status" :readonly="(addForm.applyStatus == 2 || addForm.applyStatus == 3 || addForm.applyStatus == 4) && dialogType == 'view'"> |
|
|
|
|
<el-option v-for="item in examineList" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-col> |
|
|
|
|
@ -641,7 +641,7 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button v-show="(dialogType == 'view' && addForm.applyStatus != 1 && addForm.applyStatus != 2 && addForm.applyStatus != 3 && addForm.applyStatus != 4) || (dialogType == 'examine' && addForm.applyStatus == 1)" @click="handleSubmit()" |
|
|
|
|
<el-button v-show="(dialogType == 'view' && addForm.applyStatus != 1 && addForm.applyStatus != 2 && addForm.applyStatus != 3 && addForm.applyStatus != 4) || (dialogType == 'examine' && addForm.applyStatus == 1) || dialogType == 'add'" @click="handleSubmit()" |
|
|
|
|
>提 交 </el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
@ -953,6 +953,7 @@ export default { |
|
|
|
|
getDetail({ id: row.id }).then((res) => { |
|
|
|
|
this.addForm = res.data.data; |
|
|
|
|
this.examineValue = '' |
|
|
|
|
this.addForm.status = '' |
|
|
|
|
this.goodsList = this.addForm.orderList; |
|
|
|
|
this.dialogInputVisible = true; |
|
|
|
|
}); |
|
|
|
|
@ -965,6 +966,7 @@ export default { |
|
|
|
|
this.addForm = res.data.data; |
|
|
|
|
this.goodsList = this.addForm.orderList; |
|
|
|
|
this.examineValue = this.addForm.applyStatus |
|
|
|
|
this.addForm.status = this.addForm.status + '' |
|
|
|
|
this.dialogInputVisible = true; |
|
|
|
|
if (this.addForm.applyStatus == 0) { |
|
|
|
|
this.isSave = true; |
|
|
|
|
@ -991,6 +993,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 验收申请数据 |
|
|
|
|
handleCheck(row) { |
|
|
|
|
console.log('row ====>',row) |
|
|
|
|
this.fileList = [] |
|
|
|
|
this.filesList = [] |
|
|
|
|
this.dialogcheckVisible = true; |
|
|
|
|
@ -998,7 +1001,10 @@ export default { |
|
|
|
|
this.$refs.checkForm.clearValidate() |
|
|
|
|
this.checkForm = { |
|
|
|
|
applyId : row.id, |
|
|
|
|
checkUserName : this.userInfo.real_name |
|
|
|
|
name:row.name, |
|
|
|
|
supplierId:row.supplierId, |
|
|
|
|
checkUserName : this.userInfo.real_name, |
|
|
|
|
receiveDate:row.expectedArrivalDate |
|
|
|
|
} |
|
|
|
|
console.log('check ==============>',this.checkForm) |
|
|
|
|
}) |
|
|
|
|
@ -1099,10 +1105,10 @@ export default { |
|
|
|
|
} |
|
|
|
|
}else if(this.dialogType == 'examine'){ |
|
|
|
|
console.log('examine ==================>') |
|
|
|
|
if(this.examineValue == ''){ |
|
|
|
|
if(this.addForm.status == ''){ |
|
|
|
|
this.$message.error('请填写审批意见') |
|
|
|
|
}else{ |
|
|
|
|
this.addForm.applyStatus = this.examineValue; |
|
|
|
|
this.addForm.applyStatus = this.addForm.status; |
|
|
|
|
savePurchase(this.addForm).then((res) => { |
|
|
|
|
console.log("add ===========>", res); |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
|