@@ -46,7 +46,7 @@
-
+
@@ -59,14 +59,14 @@
:minWidth="minWidth"
:maxHeight="300"
:rowNumber="false"
- :rowSelection="true"
- :actionButton="true"
- :dragSort="true"
+ :rowSelection="rowCanEdit"
+ :actionButton="rowCanEdit"
+ :dragSort="rowCanEdit"
@valueChange="onValueChange"
@added="onAdded"
@deleted="onDeleted">
-
+
扫码录入
@@ -77,7 +77,7 @@
收起扫码
-
+
导入明细
@@ -156,6 +156,7 @@
operTimeStr: '',
prefixNo: 'QTCK',
fileList:[],
+ rowCanEdit: true,
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
model: {},
@@ -190,12 +191,15 @@
{ title: '批号', key: 'batchNumber', width: '7%', type: FormTypes.popupJsh, kind: 'batch', multi: false },
{ title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.input, readonly: true },
{ title: '多属性', key: 'sku', width: '9%', type: FormTypes.normal },
+ { title: '原数量', key: 'preNumber', width: '4%', type: FormTypes.normal },
+ { title: '已入库', key: 'finishNumber', width: '4%', type: FormTypes.normal },
{ title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true,
validateRules: [{ required: true, message: '${title}不能为空' }]
},
{ title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber},
{ title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true },
- { title: '备注', key: 'remark', width: '5%', type: FormTypes.input }
+ { title: '备注', key: 'remark', width: '5%', type: FormTypes.input },
+ { title: '关联id', key: 'linkId', width: '5%', type: FormTypes.hidden },
]
},
confirmLoading: false,
@@ -225,18 +229,25 @@
editAfter() {
this.billStatus = '0'
this.currentSelectDepotId = ''
+ this.rowCanEdit = true
this.changeColumnHide()
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 0)
+ this.changeFormTypes(this.materialTable.columns, 'preNumber', 0)
+ this.changeFormTypes(this.materialTable.columns, 'finishNumber', 0)
if (this.action === 'add') {
this.addInit(this.prefixNo)
this.fileList = []
} else {
+ if(this.model.linkNumber) {
+ this.rowCanEdit = false
+ this.materialTable.columns[1].type = FormTypes.normal
+ }
this.model.operTime = this.model.operTimeStr
this.fileList = this.model.fileName
this.$nextTick(() => {
- this.form.setFieldsValue(pick(this.model,'organId', 'operTime', 'number', 'remark',
+ this.form.setFieldsValue(pick(this.model,'organId', 'operTime', 'number', 'linkNumber', 'remark',
'discount','discountMoney','discountLastMoney','otherMoney','accountId','changeAmount'))
});
// 加载子表数据
@@ -288,14 +299,13 @@
this.$refs.waitBillList.show('出库', '销售,采购退货', "1,3")
this.$refs.waitBillList.title = "选择销售出库或采购退货"
},
- waitBillListOk(selectBillDetailRows, linkNumber, organId, discountMoney, deposit, remark) {
+ waitBillListOk(selectBillDetailRows, linkNumber, remark) {
this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal
this.changeFormTypes(this.materialTable.columns, 'preNumber', 1)
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 1)
if(selectBillDetailRows && selectBillDetailRows.length>0) {
let listEx = []
- let allTaxLastMoney = 0
for(let j=0; j
0) {
@@ -304,32 +314,13 @@
info.unitPrice = 0
info.allPrice = 0
info.linkId = info.id
- allTaxLastMoney += info.taxLastMoney
listEx.push(info)
this.changeColumnShow(info)
}
this.materialTable.dataSource = listEx
- ///给优惠后金额重新赋值
- allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
- let discount = 0
- if(allTaxLastMoney!==0) {
- discount = (discountMoney / allTaxLastMoney * 100).toFixed(2) - 0
- }
- let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
- let changeAmount = discountLastMoney
- if(deposit) {
- this.depositStatus = true
- changeAmount = (discountLastMoney - deposit).toFixed(2)-0
- }
this.$nextTick(() => {
this.form.setFieldsValue({
- 'organId': organId,
'linkNumber': linkNumber,
- 'discount': discount,
- 'discountMoney': discountMoney,
- 'discountLastMoney': discountLastMoney,
- 'deposit': deposit,
- 'changeAmount': changeAmount,
'remark': remark
})
})
diff --git a/jshERP-web/src/views/bill/modules/PurchaseInModal.vue b/jshERP-web/src/views/bill/modules/PurchaseInModal.vue
index 62dc3a14..27620beb 100644
--- a/jshERP-web/src/views/bill/modules/PurchaseInModal.vue
+++ b/jshERP-web/src/views/bill/modules/PurchaseInModal.vue
@@ -89,7 +89,7 @@
历史单据
-
+
导入明细
diff --git a/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue b/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
index 3a0e48df..a0af9d7c 100644
--- a/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
+++ b/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
@@ -89,7 +89,7 @@
历史单据
-
+
导入明细
diff --git a/jshERP-web/src/views/bill/modules/SaleOutModal.vue b/jshERP-web/src/views/bill/modules/SaleOutModal.vue
index 7b0f3266..f950a41a 100644
--- a/jshERP-web/src/views/bill/modules/SaleOutModal.vue
+++ b/jshERP-web/src/views/bill/modules/SaleOutModal.vue
@@ -90,7 +90,7 @@
历史单据
-
+
导入明细