Commit 64106513 authored by 张宗旭's avatar 张宗旭

提交

parent 67470005
......@@ -74,7 +74,7 @@
label="序号"> </el-table-column>
<el-table-column prop="orderNum"
label="采购单号"></el-table-column>
<el-table-column prop="customer"
<el-table-column prop="customerName"
label="客户名称"> </el-table-column>
<el-table-column prop="productName"
label="产品名称"> </el-table-column>
......@@ -145,6 +145,7 @@ import {
purchaseOrderEnableCar,
purchaseOrderDisableCar,
purchaseOrderDelete,
getOneCustomer,
} from "@/libs/common/constant";
import { selectListALL } from "@/utils/json";
export default {
......@@ -164,7 +165,7 @@ export default {
pageSize: 10,
},
total: 0,
tablekey: "",
tablekey: 123,
loadings: true,
isLoadProvinceId: true,
// 产品 类型
......@@ -204,8 +205,19 @@ export default {
this.total = dataList.total;
this.dataList = dataList.list;
this.loadings = false;
await this.adda();
},
async adda() {
for (var i = 0; i < this.dataList.length; i++) {
this.dataList[i].customerName = await this.getOneCustomer(this.dataList[i].customerOpenId)
}
this.tablekey = 456
},
async getOneCustomer(openId) {
const res = await this.$api.GET(`${getOneCustomer.url}${openId}`);
return res.name;
},
async purchaseOrderFind(data) {
const res = await this.$api.GET(`${purchaseOrderFind.url}`, data);
return res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment