Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 years ago
parent
commit
8a8928ea56

+ 10 - 2
src/api/supply.js View File

266
   })
266
   })
267
 }
267
 }
268
 
268
 
269
-export function updatesupply(data) {
269
+export function updatesupply(data,params) {
270
   return request({
270
   return request({
271
-    url: '/api/supply/updatesupply',
271
+    url: '/api/supply/updatesupply?suppliercode=' + params.supplierCode + '&suppliername=' + params.supplierName,
272
     method: 'post',
272
     method: 'post',
273
     data: data
273
     data: data
274
   })
274
   })
275
 }
275
 }
276
 
276
 
277
+// export function updatesupply(data) {
278
+//   return request({
279
+//     url: '/api/supply/updatesupply' ,
280
+//     method: 'post',
281
+//     data: data
282
+//   })
283
+// }
284
+
277
 
285
 
278
 
286
 

File diff suppressed because it is too large
+ 1074 - 770
src/xt_pages/supply/components/addGoodOrder.vue


+ 2 - 0
src/xt_pages/supply/components/addGoodReturn.vue View File

290
         >
290
         >
291
         </el-input>
291
         </el-input>
292
       </div>
292
       </div>
293
+      <div style="margin-top: 10px">合计:{{ getAllPrice() }} 元</div>
293
       <div style="margin-top: 10px">
294
       <div style="margin-top: 10px">
294
         <span
295
         <span
295
           >优惠率:<el-input
296
           >优惠率:<el-input
701
           this.recordInfo.tableList[i].supply_price *
702
           this.recordInfo.tableList[i].supply_price *
702
           this.recordInfo.tableList[i].supply_count;
703
           this.recordInfo.tableList[i].supply_count;
703
       }
704
       }
705
+      this.total_price = total_price;
704
       return total_price.toFixed(2);
706
       return total_price.toFixed(2);
705
     },
707
     },
706
     checkPurchaseOrder(id, index) {
708
     checkPurchaseOrder(id, index) {

+ 3 - 3
src/xt_pages/supply/components/addSupply.vue View File

384
               if (valid) {
384
               if (valid) {
385
                 let params = {
385
                 let params = {
386
                   ...this.supplier,
386
                   ...this.supplier,
387
-                  ...this.recordInfo,
387
+                  // ...this.recordInfo
388
                 };
388
                 };
389
+                let data = { ...this.recordInfo };
389
                 console.log(params, "dhas");
390
                 console.log(params, "dhas");
390
-                updatesupply(params).then((res) => {
391
+                updatesupply(data,params).then((res) => {
391
                   console.log(res, "oo");
392
                   console.log(res, "oo");
392
                 });
393
                 });
393
               } else {
394
               } else {
401
           }
402
           }
402
         });
403
         });
403
       }
404
       }
404
-
405
       this.contactsinfo();
405
       this.contactsinfo();
406
     },
406
     },
407
 
407
 

File diff suppressed because it is too large
+ 1197 - 916
src/xt_pages/supply/components/editGoodOrder.vue


File diff suppressed because it is too large
+ 995 - 782
src/xt_pages/supply/components/editPurchaseOrder.vue