1.保存代码

feature-order-fix
x_z 2 years ago
parent 74eb8d9ced
commit af6ea1cf23

@ -156,9 +156,9 @@
</el-table-column>
<el-table-column width="250" label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip>
</el-table-column>
<el-table-column width="150" abel="生产厂家" prop="ylqxzcrbarmc"
<el-table-column width="150" label="生产厂家" prop="ylqxzcrbarmc"
show-overflow-tooltip></el-table-column>
<el-table-column width="150" abel="库存数量" prop="invCount"
<el-table-column width="150" label="库存数量" prop="invCount"
show-overflow-tooltip></el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope">
@ -232,7 +232,6 @@
{{ (scope.row.inCount - scope.row.outCount) }}
</template>
</el-table-column>
</el-table>
<el-pagination
@ -298,7 +297,6 @@ export default {
storageList: [],
subInvList: [],
spaceList: [],
thisData: {},
filterQuery: {
invStorageCode: null,
invWarehouseCode: null,
@ -315,14 +313,34 @@ export default {
saveOrder() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
saveCountOrder(this.formData).then((res) => {
if (this.codeArray.length === 0) {
this.$message.error("请选择盘点产品");
return;
}
let invProductList = [];
this.codeArray.forEach(product => {
invProductList.push(product);
});
let orderData = {
invCountOrder: {
createTime: this.formData.billDate,
invStorageCode: this.formData.locStorageCode,
invWarehouseCode: this.formData.invWarehouseCode,
invSpaceCode: this.formData.invSpaceCode
},
invProductList: invProductList
};
saveCountOrder(orderData).then((res) => {
if (res.code === 20000) {
this.$message.success("保存成功");
this.closeDialog();
} else {
this.$message.error(res.data.message);
}
})
});
}
})
},
@ -400,7 +418,7 @@ export default {
productName: product.cpmctymc,
spce: product.ggxh,
batchNo: product.batchNo,
produceDate: product.productionDate,
productDate: product.productionDate,
expireDate: product.expireDate,
zczbhhzbapzbh: null,
ylqxzcrbarmc: null,

@ -73,6 +73,14 @@
</el-table-column>
<el-table-column label="操作" width="120" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="addCode(scope.row)"
>盘点
</el-button
>
<el-button
type="text"
size="small"
@ -260,6 +268,9 @@ export default {
this.addCountOrderVisible = false;
this.getList();
},
addCode(row) {
},
},
components: {
addCountOrder

Loading…
Cancel
Save