|
@@ -51,7 +51,7 @@
|
51
|
51
|
<label class="title"><span class="name">出库</span> : </label>
|
52
|
52
|
<el-date-picker
|
53
|
53
|
size="small"
|
54
|
|
- v-model="warehousing_time"
|
|
54
|
+ v-model="warehouse_out_time"
|
55
|
55
|
prefix-icon="el-icon-date"
|
56
|
56
|
:editable="false"
|
57
|
57
|
style="width: 196px"
|
|
@@ -175,14 +175,14 @@
|
175
|
175
|
<template slot-scope="scope">
|
176
|
176
|
<el-form-item
|
177
|
177
|
:prop="'recordData.' + scope.$index + '.warehousing_count'"
|
178
|
|
- :rules="tableRules.warehousing_count"
|
|
178
|
+ :rules="tableRules.count"
|
179
|
179
|
style="padding-top: 10px"
|
180
|
180
|
>
|
181
|
181
|
<div style="display: flex">
|
182
|
182
|
|
183
|
183
|
<el-input
|
184
|
184
|
placeholder="请输入入库数量"
|
185
|
|
- v-model="scope.row.warehousing_count"
|
|
185
|
+ v-model="scope.row.count"
|
186
|
186
|
style="width: 120px"
|
187
|
187
|
></el-input>
|
188
|
188
|
|
|
@@ -377,7 +377,7 @@
|
377
|
377
|
{ path: false, name: "新增入库单" },
|
378
|
378
|
],
|
379
|
379
|
signAndWeighBoxPatients: "sign-and-weigh-box-patients",
|
380
|
|
- warehousing_time: "",
|
|
380
|
+ warehouse_out_time: "",
|
381
|
381
|
adminUserOptions: null,
|
382
|
382
|
currentIndex: 0,
|
383
|
383
|
listLoading: false,
|
|
@@ -629,27 +629,33 @@
|
629
|
629
|
handleEdit: function (index, row) {
|
630
|
630
|
const tempObj = {};
|
631
|
631
|
tempObj["id"] = 0;
|
632
|
|
- tempObj["drug_name"] = "";
|
633
|
632
|
tempObj["drug_id"] = 0;
|
634
|
|
- tempObj["number"] = "";
|
635
|
|
- tempObj["product_date"] = "";
|
636
|
|
- tempObj["expiry_date"] = "";
|
637
|
|
- tempObj["warehousing_count"] = "";
|
638
|
|
- tempObj["retail_price"] = "";
|
|
633
|
+ tempObj["max_unit"] = "";
|
|
634
|
+ (tempObj["min_unit"] = ""), (tempObj["return_count"] = 0);
|
639
|
635
|
tempObj["price"] = "";
|
640
|
636
|
tempObj["remark"] = "";
|
641
|
|
- tempObj["dealer"] = "";
|
642
|
637
|
tempObj["manufacturer"] = "";
|
643
|
|
- tempObj["min_unit"] = "";
|
644
|
|
- tempObj["max_unit"] = "";
|
645
|
|
- tempObj["drug_type"] = "";
|
646
|
638
|
tempObj["batch_number"] = "";
|
|
639
|
+ tempObj["drug_type"] = "";
|
647
|
640
|
tempObj["dose"] = "";
|
648
|
641
|
tempObj["dose_unit"] = "";
|
|
642
|
+ tempObj["min_number"] = "";
|
649
|
643
|
tempObj["dealer"] = "";
|
|
644
|
+ tempObj["number"] = "";
|
|
645
|
+ tempObj["warehouse_info_id"] = 0;
|
|
646
|
+ tempObj["count"] = "";
|
|
647
|
+ tempObj["admin_user_id"] = this.$store.getters.xt_user.user.user_name;
|
|
648
|
+ tempObj["retail_price"] = 0;
|
650
|
649
|
tempObj["last_price"] = "";
|
651
|
|
- tempObj["count_unit"] = "";
|
652
|
|
- tempObj["min_number"] = "";
|
|
650
|
+ tempObj["stock_count"] = "";
|
|
651
|
+ tempObj["total_count"] = 0;
|
|
652
|
+ tempObj["max_unit_fisrt"] = 0;
|
|
653
|
+ tempObj["min_unit_fisrt"] = 0;
|
|
654
|
+ tempObj["total_price"] = 0;
|
|
655
|
+ tempObj["patient_id"] = 0
|
|
656
|
+ tempObj["product_date"] = ""
|
|
657
|
+ tempObj["expiry_date"]=""
|
|
658
|
+ tempObj["class_type"] = ""
|
653
|
659
|
this.recordInfo.recordData.push(tempObj);
|
654
|
660
|
},
|
655
|
661
|
handleDelete: function (index, row) {
|
|
@@ -815,6 +821,7 @@
|
815
|
821
|
stockOut: this.recordInfo.recordData,
|
816
|
822
|
};
|
817
|
823
|
console.log("param22222222",params)
|
|
824
|
+
|
818
|
825
|
const loading = this.$loading({
|
819
|
826
|
lock: true,
|
820
|
827
|
text: "Loading",
|
|
@@ -1173,7 +1180,7 @@
|
1173
|
1180
|
var nowYear = nowDate.getFullYear();
|
1174
|
1181
|
var nowMonth = nowDate.getMonth() + 1;
|
1175
|
1182
|
var nowDay = nowDate.getDate();
|
1176
|
|
- this.warehousing_time =
|
|
1183
|
+ this.warehouse_out_time =
|
1177
|
1184
|
nowYear +
|
1178
|
1185
|
"-" +
|
1179
|
1186
|
(nowMonth < 10 ? "0" + nowMonth : nowMonth) +
|
|
@@ -1207,6 +1214,7 @@
|
1207
|
1214
|
tempObj["patient_id"] = 0
|
1208
|
1215
|
tempObj["product_date"] = ""
|
1209
|
1216
|
tempObj["expiry_date"]=""
|
|
1217
|
+ tempObj["class_type"] = ""
|
1210
|
1218
|
this.recordInfo.recordData.push(tempObj);
|
1211
|
1219
|
this.propForm.goodUnit = this.$store.getters.good_unit;
|
1212
|
1220
|
|