|
|
@ -34,8 +34,16 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row class="rowStyle"> |
|
|
|
<el-col :span="24" class="colStyle"> |
|
|
|
<div class="span-sty spanOneWidth"><span>排产类型:</span></div> |
|
|
|
<el-col :span="8" class="colStyle"> |
|
|
|
<div class="span-sty spanOneWidth"><span>采购类型:</span></div> |
|
|
|
<el-form-item> |
|
|
|
<el-select v-model="formobj.applyType" placeholder="请选择" @change="changeApplyType" clearable class="addinputInfo addinputOne"> |
|
|
|
<el-option v-for="item in applyType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="16" class="colStyle"> |
|
|
|
<div class="span-sty spanOneWidth"><span>采购原因:</span></div> |
|
|
|
<el-form-item> |
|
|
|
<el-select v-model="formobj.schedulingType" placeholder="请选择" @change="changeSchedulingType" clearable class="addinputInfo addinputOne"> |
|
|
|
<el-option v-for="item in schedulingType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option> |
|
|
@ -150,6 +158,7 @@ export default { |
|
|
|
tableKey: 0, |
|
|
|
// 下拉框 |
|
|
|
schedulingType_list: [], // 排产订金使用 |
|
|
|
applyType_list: [], |
|
|
|
isRead: false, |
|
|
|
// 表单数据 |
|
|
|
formobj: { |
|
|
@ -159,7 +168,9 @@ export default { |
|
|
|
createByName: '', // 制单人 |
|
|
|
applicationCode: '', // 申请编号 |
|
|
|
applicationDate: '', // 申请日期 |
|
|
|
schedulingType: '', // 排产类型 |
|
|
|
applyType: '', // 采购类型 |
|
|
|
applyTypeKey: '', |
|
|
|
schedulingType: '', // 采购原因 |
|
|
|
schedulingTypeKey: '', |
|
|
|
remarks: '', // 备注 |
|
|
|
currentAmount: '', // 当前订金金额 |
|
|
@ -179,7 +190,11 @@ export default { |
|
|
|
req.pullDown({ type: 'schedulingType' }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.schedulingType_list = res.data |
|
|
|
console.log('下拉框请求111', res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
req.pullDown({ type: 'applyType' }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.applyType_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -285,6 +300,18 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
changeApplyType(value) { |
|
|
|
let bb = null |
|
|
|
this.applyType_list.forEach((e) => { |
|
|
|
if (e.dictValue === value) { |
|
|
|
bb = { |
|
|
|
key: e.dictKey, |
|
|
|
value: e.dictValue |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
this.formobj.applyTypeKey = bb.key |
|
|
|
}, |
|
|
|
changeSchedulingType(value) { |
|
|
|
let bb = null |
|
|
|
this.schedulingType_list.forEach((e) => { |
|
|
@ -408,6 +435,8 @@ export default { |
|
|
|
// 返回(===既判断) |
|
|
|
handleReturn(isreload) { |
|
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
|
this.formobj.applyType = '' |
|
|
|
this.formobj.applyTypeKey = '' |
|
|
|
this.formobj.schedulingType = '' // 排产类型 |
|
|
|
this.formobj.schedulingTypeKey = '' |
|
|
|
this.formobj.remarks = '' // 备注 |
|
|
|