|
|
|
@ -150,6 +150,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {stockOrderDetail, updateStockOrderDetail} from "@/api/warehouse/stockOrder";
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "stockOrderEdit",
|
|
|
|
@ -201,6 +202,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
batchSetParams(flag, type) {
|
|
|
|
|
if (flag == '1' && type == 'salesListNo') {
|
|
|
|
|
if (isBlank(this.batchForm.secSalesListNo)) {
|
|
|
|
|
this.$message.warning("请输入销售清单");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.salesListNoFormVisible = false;
|
|
|
|
|
this.detailList.forEach(data => {
|
|
|
|
|
this.multipId.forEach(id => {
|
|
|
|
@ -214,6 +219,10 @@ export default {
|
|
|
|
|
//置空批量设置表单
|
|
|
|
|
Object.keys(this.batchForm).forEach(key => this.batchForm[key] = '');
|
|
|
|
|
} else if (flag == '1' && type == 'firstSalesInvNo') {
|
|
|
|
|
if (isBlank(this.batchForm.firstSalesInvNo)) {
|
|
|
|
|
this.$message.warning("请输入第一票发票号")
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.firstSalesInvNoFormVisible = false;
|
|
|
|
|
this.detailList.forEach(data => {
|
|
|
|
|
this.multipId.forEach(id => {
|
|
|
|
@ -226,6 +235,10 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
Object.keys(this.batchForm).forEach(key => this.batchForm[key] = '');
|
|
|
|
|
} else if (flag == '1' && type == 'secSalesInvNo') {
|
|
|
|
|
if (isBlank(this.batchForm.secSalesInvNo) || isBlank(this.batchForm.invoiceDate)) {
|
|
|
|
|
this.$message.warning("请输入第二票发票号和发票日期")
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.secSalesInvNoFormVisible = false;
|
|
|
|
|
this.detailList.forEach(data => {
|
|
|
|
|
this.multipId.forEach(id => {
|
|
|
|
|