|
@@ -435,7 +435,7 @@ export default {
|
|
{ title: '生产日期', key: 'productionDate', width: '9%', type: FormTypes.normal },
|
|
{ title: '生产日期', key: 'productionDate', width: '9%', type: FormTypes.normal },
|
|
{ title: '保质期', key: 'expiryNum', width: '6%', type: FormTypes.normal },
|
|
{ title: '保质期', key: 'expiryNum', width: '6%', type: FormTypes.normal },
|
|
{ title: '商品条码', key: 'barCode', width: '6%', type: FormTypes.normal },
|
|
{ title: '商品条码', key: 'barCode', width: '6%', type: FormTypes.normal },
|
|
- { title: '仓库名', key: 'depotName', width: '6%', type: FormTypes.normal },
|
|
|
|
|
|
+ { title: '仓库名', key: 'depotId', width: '9%', type: FormTypes.select, disabled: true },
|
|
{ title: '仓库货架', key: 'position', width: '6%', type: FormTypes.normal },
|
|
{ title: '仓库货架', key: 'position', width: '6%', type: FormTypes.normal },
|
|
{ title: '包装规格', key: 'unitName', width: '6%', type: FormTypes.normal },
|
|
{ title: '包装规格', key: 'unitName', width: '6%', type: FormTypes.normal },
|
|
|
|
|
|
@@ -593,6 +593,7 @@ export default {
|
|
this.initAccount(0)
|
|
this.initAccount(0)
|
|
this.initPlatform()
|
|
this.initPlatform()
|
|
this.initQuickBtn()
|
|
this.initQuickBtn()
|
|
|
|
+ this.initDepot()
|
|
},
|
|
},
|
|
/** 整理成formData */
|
|
/** 整理成formData */
|
|
classifyIntoFormData(allValues) {
|
|
classifyIntoFormData(allValues) {
|
|
@@ -602,7 +603,7 @@ export default {
|
|
billMain.type = '其它'
|
|
billMain.type = '其它'
|
|
billMain.subType = '采购订单'
|
|
billMain.subType = '采购订单'
|
|
for (let item of detailArr) {
|
|
for (let item of detailArr) {
|
|
- item.depotId = '' //订单不需要仓库
|
|
|
|
|
|
+ // item.depotId = '' //订单不需要仓库
|
|
totalPrice += item.allPrice - 0
|
|
totalPrice += item.allPrice - 0
|
|
}
|
|
}
|
|
billMain.totalPrice = 0 - totalPrice
|
|
billMain.totalPrice = 0 - totalPrice
|
|
@@ -627,6 +628,7 @@ export default {
|
|
billMain.id = this.model.id
|
|
billMain.id = this.model.id
|
|
}
|
|
}
|
|
billMain.status = this.billStatus
|
|
billMain.status = this.billStatus
|
|
|
|
+
|
|
return {
|
|
return {
|
|
info: JSON.stringify(billMain),
|
|
info: JSON.stringify(billMain),
|
|
rows: JSON.stringify(detailArr),
|
|
rows: JSON.stringify(detailArr),
|