|
@@ -59,7 +59,8 @@
|
59
|
59
|
<span>单据编码:{{ number }}</span>
|
60
|
60
|
</div>
|
61
|
61
|
<div>
|
62
|
|
- <el-button size="small" type="primary" @click="toAdd">保存</el-button>
|
|
62
|
+ <el-button size="small" type="primary" @click="saveGoodReturn" v-show="showOne">保存</el-button>
|
|
63
|
+ <el-button size="small" type="primary" @click="saveGoodReturn" v-show="showTwo">修改</el-button>
|
63
|
64
|
<el-button size="small" type="primary" @click="updatePurchaseOrder"
|
64
|
65
|
>审核</el-button
|
65
|
66
|
>
|
|
@@ -73,8 +74,8 @@
|
73
|
74
|
<el-table
|
74
|
75
|
:row-style="{ color: '#303133' }"
|
75
|
76
|
:header-cell-style="{
|
76
|
|
- backgroundColor: 'rgb(245, 247, 250)',
|
77
|
|
- color: '#606266',
|
|
77
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
78
|
+ color: '#606266'
|
78
|
79
|
}"
|
79
|
80
|
:data="recordInfo.tableList"
|
80
|
81
|
:class="signAndWeighBoxPatients"
|
|
@@ -133,23 +134,23 @@
|
133
|
134
|
</template>
|
134
|
135
|
</el-table-column>
|
135
|
136
|
|
136
|
|
- <!-- <el-table-column label="单位" align="center" width="120px">
|
137
|
|
- <template slot="header" slot-scope="scope">
|
138
|
|
- <span>单位<span style="color: red">*</span></span>
|
139
|
|
- </template>
|
140
|
|
- <template slot-scope="scope">
|
141
|
|
- <el-form-item :prop="'tableList.' + scope.$index + '.supply_unit'" :rules='tableRules.supply_unit'>
|
142
|
|
- <el-select v-model="scope.row.supply_unit" style="width:100px;" filterable placeholder="请选择" :disabled="disabled">
|
143
|
|
- <el-option
|
144
|
|
- v-for="(item,index) in scope.row.unitList"
|
145
|
|
- :key="index"
|
146
|
|
- :label="item.name"
|
147
|
|
- :value="item.name">
|
148
|
|
- </el-option>
|
149
|
|
- </el-select>
|
150
|
|
- </el-form-item>
|
151
|
|
- </template>
|
152
|
|
- </el-table-column> -->
|
|
137
|
+ <el-table-column label="单位" align="center" width="120px">
|
|
138
|
+ <template slot="header" slot-scope="scope">
|
|
139
|
+ <span>单位<span style="color: red">*</span></span>
|
|
140
|
+ </template>
|
|
141
|
+ <template slot-scope="scope">
|
|
142
|
+ <el-form-item :prop="'tableList.' + scope.$index + '.supply_unit'" :rules='tableRules.supply_unit'>
|
|
143
|
+ <el-select v-model="scope.row.supply_unit" style="width:100px;" filterable placeholder="请选择" :disabled="disabled">
|
|
144
|
+ <!-- <el-option
|
|
145
|
+ v-for="(item,index) in scope.row.unitList"
|
|
146
|
+ :key="index"
|
|
147
|
+ :label="item.name"
|
|
148
|
+ :value="item.name">
|
|
149
|
+ </el-option> -->
|
|
150
|
+ </el-select>
|
|
151
|
+ </el-form-item>
|
|
152
|
+ </template>
|
|
153
|
+ </el-table-column>
|
153
|
154
|
<el-table-column label="可用库存" align="center" width="130px">
|
154
|
155
|
<template slot-scope="scope">
|
155
|
156
|
<el-input
|
|
@@ -226,9 +227,9 @@
|
226
|
227
|
<el-table-column label="关联采购订单号" align="center" width="200px">
|
227
|
228
|
<template slot-scope="scope">
|
228
|
229
|
<el-input
|
229
|
|
- v-model="scope.row.supply_license_number"
|
|
230
|
+ v-model="scope.row.order_number"
|
230
|
231
|
style="width: 160px"
|
231
|
|
- :disabled="disabled"
|
|
232
|
+ :disabled="true"
|
232
|
233
|
></el-input>
|
233
|
234
|
</template>
|
234
|
235
|
</el-table-column>
|
|
@@ -236,9 +237,9 @@
|
236
|
237
|
<el-table-column label="源购货订单号" align="center" width="200px">
|
237
|
238
|
<template slot-scope="scope">
|
238
|
239
|
<el-input
|
239
|
|
- v-model="scope.row.supply_license_number"
|
|
240
|
+ v-model="scope.row.good_number"
|
240
|
241
|
style="width: 160px"
|
241
|
|
- :disabled="disabled"
|
|
242
|
+ :disabled="true"
|
242
|
243
|
></el-input>
|
243
|
244
|
</template>
|
244
|
245
|
</el-table-column>
|
|
@@ -253,52 +254,34 @@
|
253
|
254
|
</template>
|
254
|
255
|
</el-table-column>
|
255
|
256
|
|
256
|
|
- <el-table-column
|
257
|
|
- label="操作"
|
258
|
|
- align="center"
|
259
|
|
- width="150px"
|
260
|
|
- fixed="right"
|
261
|
|
- >
|
|
257
|
+ <el-table-column label="操作" align="center" width="150px" fixed="right">
|
262
|
258
|
<template slot-scope="scope">
|
263
|
|
- <el-tooltip
|
264
|
|
- class="item"
|
265
|
|
- effect="dark"
|
266
|
|
- content="新增"
|
267
|
|
- placement="top"
|
268
|
|
- >
|
269
|
|
- <el-button
|
270
|
|
- size="mini"
|
271
|
|
- type="primary"
|
272
|
|
- icon="el-icon-circle-plus-outline"
|
273
|
|
- @click="handleEdit(scope.$index, scope.row)"
|
274
|
|
- >
|
275
|
|
- </el-button>
|
276
|
|
- </el-tooltip>
|
277
|
|
- <el-tooltip
|
278
|
|
- class="item"
|
279
|
|
- effect="dark"
|
280
|
|
- content="删除"
|
281
|
|
- placement="top"
|
282
|
|
- >
|
283
|
|
- <el-button
|
284
|
|
- size="mini"
|
285
|
|
- type="danger"
|
286
|
|
- icon="el-icon-delete"
|
287
|
|
- @click="handleDelete(scope.$index, scope.row)"
|
288
|
|
- >
|
289
|
|
- </el-button>
|
|
259
|
+ <el-tooltip class="item" effect="dark" content="新增" placement="top" >
|
|
260
|
+ <el-button
|
|
261
|
+ size="mini"
|
|
262
|
+ type="primary"
|
|
263
|
+ icon="el-icon-circle-plus-outline"
|
|
264
|
+ @click="handleEdit(scope.$index, scope.row)">
|
|
265
|
+ </el-button>
|
|
266
|
+ </el-tooltip>
|
|
267
|
+ <el-tooltip class="item" effect="dark" content="删除" placement="top">
|
|
268
|
+ <el-button
|
|
269
|
+ size="mini"
|
|
270
|
+ type="danger"
|
|
271
|
+ icon="el-icon-delete"
|
|
272
|
+ @click="handleDelete(scope.$index, scope.row)">
|
|
273
|
+ </el-button>
|
290
|
274
|
</el-tooltip>
|
291
|
275
|
</template>
|
292
|
|
- </el-table-column>
|
|
276
|
+ </el-table-column>
|
293
|
277
|
</el-table>
|
294
|
278
|
</el-form>
|
295
|
279
|
<div style="margin-top: 10px">
|
296
|
|
- <!-- 合计:{{getAllPrice()}} 元 -->
|
297
|
280
|
<el-input
|
298
|
281
|
type="textarea"
|
299
|
282
|
:rows="2"
|
300
|
|
- placeholder="无备注信息"
|
301
|
|
- v-model="tipsInfo"
|
|
283
|
+ placeholder="备注信息"
|
|
284
|
+ v-model="return_remark"
|
302
|
285
|
>
|
303
|
286
|
</el-input>
|
304
|
287
|
</div>
|
|
@@ -321,30 +304,19 @@
|
321
|
304
|
<span
|
322
|
305
|
>本次付款:<el-input
|
323
|
306
|
style="width: 100px"
|
324
|
|
- v-model="discount_amount"
|
|
307
|
+ v-model="payment"
|
325
|
308
|
></el-input
|
326
|
309
|
></span>
|
327
|
310
|
|
328
|
311
|
<span
|
329
|
312
|
>本次欠款:<el-input
|
330
|
313
|
style="width: 100px"
|
331
|
|
- v-model="discount_amount"
|
|
314
|
+ v-model="arrearage"
|
332
|
315
|
></el-input
|
333
|
316
|
></span>
|
334
|
317
|
</div>
|
335
|
318
|
</div>
|
336
|
319
|
|
337
|
|
- <!-- <el-dialog
|
338
|
|
- title="提示"
|
339
|
|
- :visible.sync="dialogVisible"
|
340
|
|
- width="30%"
|
341
|
|
- :before-close="handleClose">
|
342
|
|
- <span>这是一段信息</span>
|
343
|
|
- <span slot="footer" class="dialog-footer">
|
344
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
345
|
|
- <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
346
|
|
- </span>
|
347
|
|
- </el-dialog> -->
|
348
|
320
|
</div>
|
349
|
321
|
</template>
|
350
|
322
|
|
|
@@ -353,9 +325,8 @@ import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
353
|
325
|
import { uParseTime } from "@/utils/tools";
|
354
|
326
|
import {
|
355
|
327
|
getInitOrder,
|
356
|
|
- updatePurchaseOrder,
|
357
|
|
- checkPurchaseOrder,
|
358
|
|
- getPurchaseOrderDetail,
|
|
328
|
+ getGoodOrderDetail,
|
|
329
|
+ saveGoodReturnOrder
|
359
|
330
|
} from "@/api/supply";
|
360
|
331
|
export default {
|
361
|
332
|
name: "addPurchaseOrder",
|
|
@@ -369,8 +340,8 @@ export default {
|
369
|
340
|
{ path: false, name: "购货单" },
|
370
|
341
|
{ path: "/good/return/add", name: "新增退货单" },
|
371
|
342
|
],
|
372
|
|
- showTwo: true,
|
373
|
|
- showOne: false,
|
|
343
|
+ showTwo: false,
|
|
344
|
+ showOne: true,
|
374
|
345
|
recordInfo: {
|
375
|
346
|
tableList: [1],
|
376
|
347
|
},
|
|
@@ -398,9 +369,9 @@ export default {
|
398
|
369
|
supplier_name: "",
|
399
|
370
|
supplyList: [],
|
400
|
371
|
rate_of_concession: "",
|
|
372
|
+ arrearage:"",
|
|
373
|
+ payment:"",
|
401
|
374
|
discount_amount: "",
|
402
|
|
- start_time: new Date(),
|
403
|
|
- end_time: new Date(),
|
404
|
375
|
tableRules: {
|
405
|
376
|
name: [{ required: true, message: "商品不能为空", trigger: "blur" }],
|
406
|
377
|
supply_count: [
|
|
@@ -416,6 +387,7 @@ export default {
|
416
|
387
|
disabled: false,
|
417
|
388
|
is_check: 0,
|
418
|
389
|
dialogVisible: false,
|
|
390
|
+ return_remark:"",
|
419
|
391
|
};
|
420
|
392
|
},
|
421
|
393
|
methods: {
|
|
@@ -542,7 +514,6 @@ export default {
|
542
|
514
|
this.currentIndex = val;
|
543
|
515
|
},
|
544
|
516
|
changeName(val) {
|
545
|
|
- //var obj = {"id":0,"name":"合计","supply_name":"","supply_type":"","supply_specification_name":"","supply_total":"","supply_count":"","supply_price":"","supply_total_price":"","supply_manufacturer":"","supply_license_number":"","supply_remake":"","is_total":2}
|
546
|
517
|
for (let i = 0; i < this.recordInfo.tableList.length; i++) {
|
547
|
518
|
if (this.currentIndex == i) {
|
548
|
519
|
this.recordInfo.tableList[i].project_id = val.id;
|
|
@@ -745,73 +716,159 @@ export default {
|
745
|
716
|
})
|
746
|
717
|
.catch(() => {});
|
747
|
718
|
},
|
748
|
|
- getPurchaseOrderDetail() {
|
749
|
|
- console.log("处方233223232323322323232323");
|
750
|
|
- var id = this.$route.query.id;
|
751
|
|
- getPurchaseOrderDetail(id).then((response) => {
|
752
|
|
- if (response.data.state == 1) {
|
753
|
|
- var info = response.data.data.info;
|
754
|
|
- this.is_check = info.is_check;
|
755
|
|
- this.number = info.number;
|
756
|
|
- this.id = info.id;
|
757
|
|
- this.supplier_name = info.supplier_id;
|
758
|
|
- this.rate_of_concession = info.rate_of_concession;
|
759
|
|
- this.discount_amount = info.discount_amount;
|
760
|
|
- var orderInfo = response.data.data.orderInfo;
|
761
|
|
- if (info.is_check == 2) {
|
762
|
|
- this.disabled = false;
|
|
719
|
+ getGoodOrderDetail(){
|
|
720
|
+
|
|
721
|
+ var id = this.$route.query.id
|
|
722
|
+ getGoodOrderDetail(id).then(response=>{
|
|
723
|
+ if(response.data.state == 1){
|
|
724
|
+ var out = response.data.data.out
|
|
725
|
+ this.is_check = out.is_check
|
|
726
|
+ this.id = out.id
|
|
727
|
+ this.supplier_name = out.supplier_id
|
|
728
|
+ this.rate_of_concession = out.rate_of_concession
|
|
729
|
+ this.discount_amount = out.discount_amount
|
|
730
|
+ this.payment = out.payment
|
|
731
|
+ this.arrearage = out.arrearage
|
|
732
|
+ this.start_time = this.getTimes(out.document_date)
|
|
733
|
+ var orderInfo = response.data.data.list
|
|
734
|
+ console.log("orderINFO233232232332",orderInfo)
|
|
735
|
+ var drugList = response.data.data.drugList
|
|
736
|
+ var goodList = response.data.data.goodList
|
|
737
|
+ for(let i=0;i< orderInfo.length;i++){
|
|
738
|
+
|
|
739
|
+ orderInfo[i].supply_count = orderInfo[i].count
|
|
740
|
+ orderInfo[i].supply_price = orderInfo[i].price
|
|
741
|
+ orderInfo[i].supply_remake = orderInfo[i].remark
|
|
742
|
+ orderInfo[i].type = orderInfo[i].is_source
|
|
743
|
+ orderInfo[i].project_id = orderInfo[i].project_id
|
|
744
|
+ orderInfo[i].supply_unit = orderInfo[i].supply_unit
|
|
745
|
+ orderInfo[i].order_number = orderInfo[i].order_number
|
|
746
|
+ orderInfo[i].good_number = orderInfo[i].good_number
|
|
747
|
+ orderInfo[i].supply_total_price = (orderInfo[i].count * orderInfo[i].price).toFixed(2)
|
|
748
|
+ orderInfo[i].supply_expiry_date = this.getTimes(orderInfo[i].supply_expiry_date)
|
|
749
|
+ orderInfo[i].supply_product_date = this.getTimes(orderInfo[i].supply_product_date)
|
|
750
|
+ if(orderInfo[i].is_source == 1){
|
|
751
|
+ for(let j=0;j<drugList.length;j++){
|
|
752
|
+ if( orderInfo[i].project_id == drugList[j].id){
|
|
753
|
+ if(drugList[j].max_unit!=drugList[j].min_unit){
|
|
754
|
+ orderInfo[i].unitList = [{id:1,name:""},{id:2,name:""}]
|
|
755
|
+ orderInfo[i].unitList[0].name = drugList[j].max_unit
|
|
756
|
+ orderInfo[i].unitList[1].name = drugList[j].min_unit
|
|
757
|
+ }
|
|
758
|
+ if(drugList[j].max_unit ==drugList[j].min_unit){
|
|
759
|
+ orderInfo[i].unitList = [{id:1,name:""}]
|
|
760
|
+ orderInfo[i].unitList[0].name = drugList[j].max_unit
|
|
761
|
+ }
|
|
762
|
+
|
|
763
|
+ }
|
|
764
|
+ }
|
|
765
|
+ }
|
|
766
|
+ if(orderInfo[i].is_source == 2){
|
|
767
|
+ for(let j=0;j<goodList.length;j++){
|
|
768
|
+ if(orderInfo[i].project_id == goodList[j].id){
|
|
769
|
+ orderInfo[i].unitList = [{id:1,name:""}]
|
|
770
|
+ orderInfo[i].unitList[0].name = goodList[j].packing_unit
|
|
771
|
+ }
|
|
772
|
+ }
|
|
773
|
+ }
|
763
|
774
|
}
|
764
|
|
- if (info.is_check == 1) {
|
765
|
|
- this.disabled = true;
|
766
|
|
- }
|
767
|
|
- console.log("drugli323322332", this.drugList);
|
768
|
|
- var drugList = response.data.data.baseList;
|
769
|
|
- var goodList = response.data.data.goodList;
|
770
|
|
- for (let i = 0; i < orderInfo.length; i++) {
|
771
|
|
- orderInfo[i].supply_count = orderInfo[i].count;
|
772
|
|
- orderInfo[i].supply_price = orderInfo[i].price;
|
773
|
|
- orderInfo[i].supply_remake = orderInfo[i].remark;
|
774
|
|
- orderInfo[i].type = orderInfo[i].is_source;
|
775
|
|
- orderInfo[i].project_id = orderInfo[i].project_id;
|
776
|
|
- orderInfo[i].supply_unit = orderInfo[i].supply_unit;
|
777
|
|
- if (orderInfo[i].is_source == 1) {
|
778
|
|
- for (let j = 0; j < drugList.length; j++) {
|
779
|
|
- if (orderInfo[i].project_id == drugList[j].id) {
|
780
|
|
- orderInfo[i].unitList = [
|
781
|
|
- { id: 1, name: "" },
|
782
|
|
- { id: 2, name: "" },
|
783
|
|
- ];
|
784
|
|
- orderInfo[i].unitList[0].name = drugList[j].max_unit;
|
785
|
|
- orderInfo[i].unitList[1].name = drugList[j].min_unit;
|
786
|
|
- }
|
787
|
|
- }
|
788
|
|
- }
|
789
|
|
- if (orderInfo[i].is_source == 2) {
|
790
|
|
- for (let j = 0; j < goodList.length; j++) {
|
791
|
|
- if (orderInfo[i].project_id == goodList[j].id) {
|
792
|
|
- orderInfo[i].unitList = [{ id: 1, name: "" }];
|
793
|
|
- orderInfo[i].unitList[0].name = goodList[j].packing_unit;
|
794
|
|
- }
|
795
|
|
- }
|
796
|
|
- }
|
797
|
|
- }
|
798
|
|
- console.log("orderINFO23323232", orderInfo);
|
799
|
|
- this.recordInfo.tableList = orderInfo;
|
|
775
|
+
|
|
776
|
+ this.recordInfo.tableList= []
|
|
777
|
+ this.recordInfo.tableList = orderInfo
|
|
778
|
+
|
800
|
779
|
}
|
801
|
|
- });
|
|
780
|
+ })
|
802
|
781
|
},
|
803
|
782
|
toPrint() {
|
804
|
783
|
var id = this.$route.query.id;
|
805
|
784
|
this.$router.push({ path: "/purchase/order/print?&id=" + id });
|
806
|
785
|
},
|
807
|
|
- toAdd() {
|
808
|
|
- var id = this.$route.query.id;
|
809
|
|
- if (this.is_check == 2) {
|
810
|
|
- this.$message.error("该采购订单未审核,不能生成采购数据!");
|
811
|
|
- return false;
|
812
|
|
- }
|
813
|
|
- this.$router.push({ path: "/purchase/order/add?id=" + id });
|
814
|
|
- },
|
|
786
|
+ saveGoodReturn(){
|
|
787
|
+ var warehouse_out_id = this.$route.query.id;
|
|
788
|
+ this.$refs["tableForm"].validate((valid)=>{
|
|
789
|
+ if(valid){
|
|
790
|
+ this.loading = true
|
|
791
|
+ for(let i=0;i<this.recordInfo.tableList.length;i++){
|
|
792
|
+ this.recordInfo.tableList[i].supply_count = parseInt(this.recordInfo.tableList[i].supply_count)
|
|
793
|
+ this.recordInfo.tableList[i].supply_price = this.recordInfo.tableList[i].supply_price.toString()
|
|
794
|
+ this.recordInfo.tableList[i].supply_total = this.recordInfo.tableList[i].supply_total.toString()
|
|
795
|
+
|
|
796
|
+ for(let j=0;j<this.manufactuerList.length;j++){
|
|
797
|
+ if(this.recordInfo.tableList[i].supply_manufacturer == this.manufactuerList[j].manufacturer_name){
|
|
798
|
+ this.recordInfo.tableList[i].manufacturer_id = this.manufactuerList[j].id
|
|
799
|
+ }
|
|
800
|
+ if(this.recordInfo.tableList[i].supply_manufacturer == this.manufactuerList[j].id){
|
|
801
|
+ this.recordInfo.tableList[i].supply_manufacturer = this.manufactuerList[j].manufacturer_name
|
|
802
|
+ }
|
|
803
|
+
|
|
804
|
+ }
|
|
805
|
+ }
|
|
806
|
+ var params = {
|
|
807
|
+ "stockIn":this.recordInfo.tableList,
|
|
808
|
+ "return_marke":this.return_remark,
|
|
809
|
+ }
|
|
810
|
+ console.log("start_time232233232",this.start_time)
|
|
811
|
+
|
|
812
|
+ saveGoodReturnOrder(params,warehouse_out_id,this.start_time,this.rate_of_concession,this.discount_amount,this.arrearage,this.payment,this.supplier_name).then(response=>{
|
|
813
|
+ if(response.data.state == 1){
|
|
814
|
+ this.loading = false
|
|
815
|
+ this.showOne = false
|
|
816
|
+ this.showTwo = true
|
|
817
|
+ this.$message.success("保存成功!")
|
|
818
|
+ var warehouseCancel = response.data.data.warehouseCancel
|
|
819
|
+ var out = response.data.data.cancelOrder
|
|
820
|
+ this.id = out.id
|
|
821
|
+ this.supplier_name = out.supplier_id
|
|
822
|
+ this.rate_of_concession = out.rate_of_concession
|
|
823
|
+ this.discount_amount = out.discount_amount
|
|
824
|
+ this.payment = out.payment
|
|
825
|
+ this.arrearage = out.arrearage
|
|
826
|
+ this.start_time = this.getTimes(out.document_date)
|
|
827
|
+ var orderInfo = response.data.data.list
|
|
828
|
+ for(let i=0;i< orderInfo.length;i++){
|
|
829
|
+ orderInfo[i].supply_count = orderInfo[i].count
|
|
830
|
+ orderInfo[i].supply_price = orderInfo[i].price
|
|
831
|
+ orderInfo[i].supply_remake = orderInfo[i].remark
|
|
832
|
+ orderInfo[i].type = orderInfo[i].is_source
|
|
833
|
+ orderInfo[i].project_id = orderInfo[i].project_id
|
|
834
|
+ orderInfo[i].supply_unit = orderInfo[i].supply_unit
|
|
835
|
+ orderInfo[i].order_number = orderInfo[i].order_number
|
|
836
|
+ orderInfo[i].good_number = orderInfo[i].good_number
|
|
837
|
+ orderInfo[i].supply_total_price = (orderInfo[i].count * orderInfo[i].price).toFixed(2)
|
|
838
|
+ orderInfo[i].supply_expiry_date = this.getTimes(orderInfo[i].supply_expiry_date)
|
|
839
|
+ orderInfo[i].supply_product_date = this.getTimes(orderInfo[i].supply_product_date)
|
|
840
|
+ if(orderInfo[i].is_source == 1){
|
|
841
|
+ for(let j=0;j<this.drugList.length;j++){
|
|
842
|
+ if( orderInfo[i].project_id == this.drugList[j].id){
|
|
843
|
+ if(this.drugList[j].max_unit!=this.drugList[j].min_unit){
|
|
844
|
+ orderInfo[i].unitList = [{id:1,name:""},{id:2,name:""}]
|
|
845
|
+ orderInfo[i].unitList[0].name = this.drugList[j].max_unit
|
|
846
|
+ orderInfo[i].unitList[1].name = this.drugList[j].min_unit
|
|
847
|
+ }
|
|
848
|
+ if(this.drugList[j].max_unit ==this.drugList[j].min_unit){
|
|
849
|
+ orderInfo[i].unitList = [{id:1,name:""}]
|
|
850
|
+ orderInfo[i].unitList[0].name = this.drugList[j].max_unit
|
|
851
|
+ }
|
|
852
|
+
|
|
853
|
+ }
|
|
854
|
+ }
|
|
855
|
+ }
|
|
856
|
+ if(orderInfo[i].is_source == 2){
|
|
857
|
+ for(let j=0;j<this.goodList.length;j++){
|
|
858
|
+ if(orderInfo[i].project_id == this.goodList[j].id){
|
|
859
|
+ orderInfo[i].unitList = [{id:1,name:""}]
|
|
860
|
+ orderInfo[i].unitList[0].name = this.goodList[j].packing_unit
|
|
861
|
+ }
|
|
862
|
+ }
|
|
863
|
+ }
|
|
864
|
+ }
|
|
865
|
+ this.recordInfo.tableList= []
|
|
866
|
+ this.recordInfo.tableList = orderInfo
|
|
867
|
+ }
|
|
868
|
+ })
|
|
869
|
+ }
|
|
870
|
+ })
|
|
871
|
+ }
|
815
|
872
|
},
|
816
|
873
|
created() {
|
817
|
874
|
const tempObj = {};
|
|
@@ -833,7 +890,8 @@ export default {
|
833
|
890
|
tempObj["supply_unit"] = "";
|
834
|
891
|
this.recordInfo.tableList.push(tempObj);
|
835
|
892
|
this.getInitOrder();
|
836
|
|
- this.getPurchaseOrderDetail();
|
|
893
|
+ //获取购货单列表
|
|
894
|
+ this.getGoodOrderDetail();
|
837
|
895
|
},
|
838
|
896
|
};
|
839
|
897
|
</script>
|