|
@@ -167,12 +167,12 @@
|
|
|
@pagination="getList"/>
|
|
|
|
|
|
<!-- 添加或修改领料单对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body :before-close="cancel">
|
|
|
+ <el-dialog :title="requistionOrdersType?'修改退料单':'修改领料单'" :visible.sync="open" width="800px" append-to-body :before-close="cancel">
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="单据类型" prop="requistionOrdersType">
|
|
|
- <el-select v-model="form.requistionOrdersType" filterable placeholder="请选择任务领料"
|
|
|
+ <el-select v-model="form.requistionOrdersType" filterable placeholder="请选择任务"
|
|
|
:disabled="requistionState" @change="handleRequistionState(form.requistionOrdersType)">
|
|
|
<el-option key="0" label="领料" :value=0></el-option>
|
|
|
<el-option key="1" label="退料" :value=1></el-option>
|
|
@@ -180,8 +180,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="领料任务" prop="taskCode">
|
|
|
- <el-select v-model="form.taskCode" filterable placeholder="请选择任务领料" :disabled="requistionState"
|
|
|
+ <el-form-item :label="requistionOrdersType?'退料任务':'领料任务'" prop="taskCode">
|
|
|
+ <el-select v-model="form.taskCode" filterable placeholder="请选择任务" :disabled="requistionState"
|
|
|
@change="handleRequistionState(form.requistionOrdersType)">
|
|
|
<el-option v-for="item in taskList" :key="item.saleProductsId" :label="item.saleProductsTaskName"
|
|
|
:value="item.saleProductsId"></el-option>
|
|
@@ -189,7 +189,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="领料日期" prop="requisitionDate">
|
|
|
+ <el-form-item :label="requistionOrdersType?'退料日期':'领料日期'" prop="requisitionDate">
|
|
|
<el-date-picker style="width: 100%" v-model="form.requisitionDate" type="date"
|
|
|
value-format="yyyy-MM-dd" placeholder="请选择领料日期"
|
|
|
:disabled="requistionState"></el-date-picker>
|
|
@@ -442,7 +442,9 @@ export default {
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
+ //console.log(row)
|
|
|
this.reset();
|
|
|
+ this.requistionOrdersType = row.requistionOrdersType;
|
|
|
const id = row.id || this.ids
|
|
|
// 获取领料任务
|
|
|
this.getTaskList();
|