diff --git a/src/views/purchase/processing/orderProcessing.vue b/src/views/purchase/processing/orderProcessing.vue
index deebd4f..e422061 100644
--- a/src/views/purchase/processing/orderProcessing.vue
+++ b/src/views/purchase/processing/orderProcessing.vue
@@ -1,7 +1,7 @@
- 刷新
+ 刷新
@@ -30,14 +30,17 @@
-
+
{{ item2.name }}
{{ item2.number }}{{ item2.unit }}
- 物品和供应商整理
+ 物品和供应商整理
+
+
+ 123
@@ -50,6 +53,29 @@
+
+
+
+
+ 暂未数据分类
+
+
+
+
+
+ {{ item.supplier }}
+
+
+ {{ item2.name }}
+
+
+
+
+ 添加供应商
+
+
+
@@ -64,7 +90,7 @@ export default {
return {
url: {
getPurchaseSupplier: "Try/purchaseSupplier/list",
- getdata: "/Try/purchaseRequest/receivedList",
+ getdata: "/Try/purchaseOrderConfirmation/joinList",
receiveNOurl: "/Try/purchaseOrderConfirmation/cancelReceiving",
},
activeKey: [],
@@ -73,6 +99,9 @@ export default {
supplierList: [],
tableData: [],
dataShow: false,
+ arrange: false,
+ arrangeData: [],
+ classifyData: [],
}
},
computed: {
@@ -103,10 +132,10 @@ export default {
},
getTableData() {
this.dataShow = false;
- getAction(this.getdata,).then(res => {
+ getAction(this.getdata).then(res => {
//如果为200,则获取数据
if (res.code == 200) {
- this.tableData = res.result.records;
+ this.tableData = res.result;
//判断数据是否为空
if (this.tableData.length == 0) {
this.dataShow = false;
@@ -135,7 +164,12 @@ export default {
this.$message.error(res.message);
}
})
- }, downloadFile(text) {
+ },
+ Refresh() {
+ this.getSupplierData();
+ this.getTableData();
+ },
+ downloadFile(text) {
if (!text) {
this.$message.warning("未知的文件")
return;
@@ -159,14 +193,51 @@ export default {
} catch (err) {
return;
}
- }, generateOrder(item) {
- console.log(item);
- this.$message.success('生成订单中');
- }, arrange(item) {
- console.log(item);
- this.$message.success('正在整理');
+ },
+ generateOrder(item) {
+ this.$message.success('生成订单成功');
+ },
+ arrangeOpen(item) {
+ this.classifyData = [];
+ this.arrangeData = Object.assign({}, item);
+ this.arrange = true;
+ },
+ arrangeOk() {
+ this.$message.success('整理成功');
+ this.arrange = false;
+ },
+ arrangeCancel() {
+ this.$message.success('整理取消');
+ this.arrange = false;
+ },
+ addSupplier() {
+ //在classifyData添加一个空对象公司
+ this.classifyData.push({
+ supplier: "哈哈公司",
+ goods: [{
+ name: "哈哈",
+ number: "1",
+ unit: "个",
+ }, {
+ name: "哈哈",
+ number: "1",
+ unit: "个",
+ }
+ ],
+ });
}
- }
+ },
}
-
\ No newline at end of file
+
+
+
+
diff --git a/src/views/purchase/receiving/PurchaseOrderConfirmationList.vue b/src/views/purchase/receiving/PurchaseOrderConfirmationList.vue
index 89503ad..b80085d 100644
--- a/src/views/purchase/receiving/PurchaseOrderConfirmationList.vue
+++ b/src/views/purchase/receiving/PurchaseOrderConfirmationList.vue
@@ -124,6 +124,7 @@ export default {
item.procurementContent = JSON.parse(item.procurementContent);
});
this.dataShow = true;
+ console.log(this.dataList);
}
} else {
this.$message.error(res.message);