|
|
|
|
@ -10,13 +10,13 @@ |
|
|
|
|
class="content-box" |
|
|
|
|
> |
|
|
|
|
<el-form :inline="true" v-model="submitForm"> |
|
|
|
|
<el-form-item label="银钾系数" prop="coefficient" v-if="searchForm.materalType == 2"> |
|
|
|
|
<el-form-item label="银钾系数" prop="coefficient" v-if="searchForm.plateGoodsCode == '04-05-024'"> |
|
|
|
|
<el-input placeholder="请输入银钾系数" v-model="submitForm.coefficient"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item :label="labelValue + '需求量'" prop="" v-if="searchForm.materalType == 1"> |
|
|
|
|
<el-form-item :label="labelValue + '需求量'" prop="" v-if="searchForm.plateGoodsCode == '04-05-023'"> |
|
|
|
|
<el-input placeholder="请输入需求量" v-model="submitForm.goodsQuantity"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="银钾需求量" prop="saveBoardVal" v-if="searchForm.materalType == 2"> |
|
|
|
|
<el-form-item label="银钾需求量" prop="saveBoardVal" v-if="searchForm.plateGoodsCode == '04-05-024'"> |
|
|
|
|
<el-input placeholder="请输入银钾需求量" v-model="submitForm.goodsQuantity"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item> |
|
|
|
|
@ -40,10 +40,10 @@ |
|
|
|
|
<!-- <el-option label="作业中心二" value="2"></el-option> --> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="物料类型" prop="materalType"> |
|
|
|
|
<el-radio-group v-model="searchForm.materalType" @input="changeType"> |
|
|
|
|
<el-radio :label="1">金钾(04-05-023)</el-radio> |
|
|
|
|
<el-radio :label="2">银钾(04-05-024)</el-radio> |
|
|
|
|
<el-form-item label="物料类型" prop="plateGoodsCode"> |
|
|
|
|
<el-radio-group v-model="searchForm.plateGoodsCode" @input="changeType"> |
|
|
|
|
<el-radio label="04-05-023">金钾(04-05-023)</el-radio> |
|
|
|
|
<el-radio label="04-05-024">银钾(04-05-024)</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
@ -191,7 +191,7 @@ export default { |
|
|
|
|
loading: false, |
|
|
|
|
submitForm: {}, |
|
|
|
|
searchForm: { |
|
|
|
|
materalType: 1, |
|
|
|
|
plateGoodsCode: '04-05-023', |
|
|
|
|
}, |
|
|
|
|
labelValue: '金钾', |
|
|
|
|
tableData: [], |
|
|
|
|
@ -205,7 +205,7 @@ export default { |
|
|
|
|
console.log('11111111111'); |
|
|
|
|
this.submitForm = {}; |
|
|
|
|
this.searchForm = { |
|
|
|
|
materalType: 1, |
|
|
|
|
plateGoodsCode: '04-05-023', |
|
|
|
|
}; |
|
|
|
|
this.tableData = []; |
|
|
|
|
this.getWorkCenterList(); |
|
|
|
|
@ -301,14 +301,14 @@ export default { |
|
|
|
|
wcId: this.searchForm.wcId, |
|
|
|
|
plateGoodsCode: plateCode, |
|
|
|
|
goodsDemand: this.totalNum, |
|
|
|
|
// coefficient: this.searchForm.materalType == 2 && this.searchForm.coefficient ? this.searchForm.coefficient : 0 |
|
|
|
|
// coefficient: this.searchForm.plateGoodsCode == '04-05-024' && this.searchForm.coefficient ? this.searchForm.coefficient : 0 |
|
|
|
|
}, |
|
|
|
|
detailList: this.selectionList.map(item => { |
|
|
|
|
return { yoId: item.id }; |
|
|
|
|
}), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
if (this.searchForm.materalType != 2) { |
|
|
|
|
if (this.searchForm.plateGoodsCode != '04-05-024') { |
|
|
|
|
// const { coefficient, ...validData } = params; |
|
|
|
|
console.log('params------------', params); |
|
|
|
|
add(params).then(res => { |
|
|
|
|
|