Commit 793507c8 authored by xioln's avatar xioln

入库明细新增

parent 0cc7398d
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
> >
<section> <section>
<el-button :disabled="disabled" type="primary" size="medium" @click="save">确定</el-button> <el-button :disabled="disabled" type="primary" size="medium" @click="save">确定</el-button>
<el-button :disabled="disabled" size="medium" @click="handleClose">取消</el-button> <el-button :disabled="disabled" size="medium" @click="close">取消</el-button>
</section> </section>
</dee-form> </dee-form>
</div> </div>
...@@ -517,7 +517,6 @@ export default { ...@@ -517,7 +517,6 @@ export default {
this.defaultAirModel() this.defaultAirModel()
}, },
mounted() { mounted() {
console.log('12231231312', this.basicData)
this.form.supplier = this.basicData.rows.extDxSipplier.supplierFullName || '' this.form.supplier = this.basicData.rows.extDxSipplier.supplierFullName || ''
this.form.isSupplierY = this.basicData.rows.extDxSipplier.isValid ? this.basicData.rows.extDxSipplier.isValid === 'Y' : '' this.form.isSupplierY = this.basicData.rows.extDxSipplier.isValid ? this.basicData.rows.extDxSipplier.isValid === 'Y' : ''
this.form.arrivalDate = this.basicData.rows.arrivalDate || '' this.form.arrivalDate = this.basicData.rows.arrivalDate || ''
...@@ -715,7 +714,6 @@ export default { ...@@ -715,7 +714,6 @@ export default {
// 带出物料相关默认值 // 带出物料相关默认值
const SELECT_MATERIAL = this.material.find((item) => item.resCode === v) const SELECT_MATERIAL = this.material.find((item) => item.resCode === v)
if (SELECT_MATERIAL) { if (SELECT_MATERIAL) {
console.log('SELECT_MATERIAL', SELECT_MATERIAL)
this.form.modelNo = SELECT_MATERIAL.modelNo || '' this.form.modelNo = SELECT_MATERIAL.modelNo || ''
this.form.techSpec = SELECT_MATERIAL.techSpec || '' this.form.techSpec = SELECT_MATERIAL.techSpec || ''
this.form.spec = SELECT_MATERIAL.spec || '' this.form.spec = SELECT_MATERIAL.spec || ''
...@@ -802,17 +800,19 @@ export default { ...@@ -802,17 +800,19 @@ export default {
'storageZoneIdType': 'ExtDxProductWorkCenter', 'storageZoneIdType': 'ExtDxProductWorkCenter',
'inventoryReqId': this.basicData.rows.id, 'inventoryReqId': this.basicData.rows.id,
'inventoryReqIdType': 'InventoryRequest', 'inventoryReqIdType': 'InventoryRequest',
'contractNo': this.form.contractNo 'contractNo': this.form.contractNo,
'isRoot': true
} }
).then((res) => { ).then((res) => {
console.log('123123', res) this.$utils.showMessageSuccess('保存成功')
this.close()
}) })
.catch((err) => { .catch((err) => {
console.log(err) console.log(err)
}) })
}, },
handleClose() { close() {
this.$emit('completeEven')
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment