|
|
|
@ -130,7 +130,7 @@
|
|
|
|
|
v-if="countType != 2"
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
|
|
:disabled="startCountVisible"
|
|
|
|
|
@click.native="startCount(1)"
|
|
|
|
|
>录入产品
|
|
|
|
|
</el-button>
|
|
|
|
@ -419,6 +419,7 @@ export default {
|
|
|
|
|
selectedIndex: null,
|
|
|
|
|
isCodeAlive: true,
|
|
|
|
|
saveLoading: false,
|
|
|
|
|
startCountVisible: false,
|
|
|
|
|
submitLoading: false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -695,6 +696,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
startCount(val) {
|
|
|
|
|
|
|
|
|
|
// this.countProductList = [];
|
|
|
|
|
if (this.countType === 0 && val === 1) {
|
|
|
|
|
if (isBlank(this.formData.invStorageCode)) {
|
|
|
|
@ -708,6 +710,7 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
getCountInvProductProduct(params).then((res) => {
|
|
|
|
|
if (res.data.total !== 0) {
|
|
|
|
|
this.startCountVisible = true
|
|
|
|
|
let invProductList = res.data.list;
|
|
|
|
|
for (let product of invProductList) {
|
|
|
|
|
this.countProductList.push(product);
|
|
|
|
@ -792,6 +795,11 @@ export default {
|
|
|
|
|
this.getInvList();
|
|
|
|
|
|
|
|
|
|
if (!isBlank(this.countOrder.orderId)) {
|
|
|
|
|
if (!isBlank(this.countOrder.countType)) {
|
|
|
|
|
if (this.countOrder.countType == 0){
|
|
|
|
|
this.startCountVisible = true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//拉取单据详情信息
|
|
|
|
|
this.formData = this.countOrder;
|
|
|
|
|
let params = {orderIdFk: this.countOrder.orderId};
|
|
|
|
@ -802,6 +810,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|