|
@@ -45,13 +45,28 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item> -->
|
|
</el-form-item> -->
|
|
|
|
|
|
- <el-form-item label="客户编号" prop="customerId">
|
|
|
|
- <el-input
|
|
|
|
|
|
+ <el-form-item label="客户" prop="customerId">
|
|
|
|
+ <!-- <el-input
|
|
v-model="queryParams.customerId"
|
|
v-model="queryParams.customerId"
|
|
placeholder="请输入客户编号"
|
|
placeholder="请输入客户编号"
|
|
clearable
|
|
clearable
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
- />
|
|
|
|
|
|
+ /> -->
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="queryParams.customerId"
|
|
|
|
+ placeholder="请选择客户"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ @change="handleQuery"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in customerOptions"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.customName"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button
|
|
<el-button
|
|
@@ -228,6 +243,7 @@ export default {
|
|
name: "ProductInvoice",
|
|
name: "ProductInvoice",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ customerOptions: [],
|
|
// 遮罩层
|
|
// 遮罩层
|
|
loading: true,
|
|
loading: true,
|
|
// 选中数组
|
|
// 选中数组
|
|
@@ -279,6 +295,26 @@ export default {
|
|
}),
|
|
}),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 初始化下拉框数据
|
|
|
|
+ async initDropDownBoxData() {
|
|
|
|
+ try {
|
|
|
|
+ let res = await queryDropDownBoxData([
|
|
|
|
+ {
|
|
|
|
+ basicMap: {
|
|
|
|
+ tableName: "customer",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ ]);
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ console.log(res);
|
|
|
|
+ this.customerOptions = res.data.resultMap.customer;
|
|
|
|
+ } else {
|
|
|
|
+ throw new Error(res);
|
|
|
|
+ }
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.log(error);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 打印发货单回调
|
|
// 打印发货单回调
|
|
async handleDeliverOrder(index, row) {
|
|
async handleDeliverOrder(index, row) {
|
|
let { saleOrderNo } = row;
|
|
let { saleOrderNo } = row;
|
|
@@ -294,11 +330,11 @@ export default {
|
|
console.log("printData", {
|
|
console.log("printData", {
|
|
...row,
|
|
...row,
|
|
...printData,
|
|
...printData,
|
|
-
|
|
|
|
|
|
+
|
|
printUser: this.username,
|
|
printUser: this.username,
|
|
});
|
|
});
|
|
deliverOrderPrint(
|
|
deliverOrderPrint(
|
|
- { ...row,...printData, printUser: this.username },
|
|
|
|
|
|
+ { ...row, ...printData, printUser: this.username },
|
|
"printDom"
|
|
"printDom"
|
|
);
|
|
);
|
|
} else {
|
|
} else {
|
|
@@ -325,7 +361,7 @@ export default {
|
|
printUser: this.username,
|
|
printUser: this.username,
|
|
});
|
|
});
|
|
sendOrderPrint(
|
|
sendOrderPrint(
|
|
- { ...row,...printData, printUser: this.username },
|
|
|
|
|
|
+ { ...row, ...printData, printUser: this.username },
|
|
"printDom"
|
|
"printDom"
|
|
);
|
|
);
|
|
} else {
|
|
} else {
|
|
@@ -457,5 +493,8 @@ export default {
|
|
);
|
|
);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ mounted() {
|
|
|
|
+ this.initDropDownBoxData();
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|