浏览代码

解决禅道系统部分bug

csx 6 年前
父节点
当前提交
e95910dc4c

+ 3 - 1
src/xt_pages/data/druguseTemplate.vue 查看文件

@@ -41,7 +41,7 @@
41 41
 
42 42
             <el-table-column
43 43
               prop="amount1"
44
-              label="医嘱内容">
44
+              lab/el="医嘱内容">
45 45
               <template slot-scope="scope">
46 46
 
47 47
                 <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
@@ -1203,6 +1203,7 @@
1203 1203
         this.isEdit = false;
1204 1204
         this.parent_id = 0;
1205 1205
         this.isAddChild = false
1206
+        this.templateTableVisible = false
1206 1207
         this.templateFormVisible = true;
1207 1208
 
1208 1209
       }, deleteRecordAction: function () {
@@ -1771,6 +1772,7 @@
1771 1772
         }
1772 1773
         return true;
1773 1774
       }, cancelEditHandle() {
1775
+        this.templateTableVisible = true
1774 1776
         this.templateEditFormVisible = false;
1775 1777
       }, submitEditTemplate(formName) {
1776 1778
         this.$refs[formName].validate(valid => {

+ 1 - 2
src/xt_pages/data/index.vue 查看文件

@@ -2,7 +2,6 @@
2 2
 <div class="main-contain">
3 3
   <div class="position">
4 4
     <bread-crumb :crumbs='crumbs'></bread-crumb>
5
-
6 5
   </div>
7 6
   <div class="app-container">
8 7
     <el-tabs  v-model="activeName" >
@@ -47,7 +46,7 @@ export default {
47 46
   methods: {
48 47
     showCreatedTimes() {
49 48
       this.createdTimes = this.createdTimes + 1
50
-    }
49
+    },
51 50
   }
52 51
 }
53 52
 </script>

+ 9 - 5
src/xt_pages/stock/Dialog/goodInfoDailog.vue 查看文件

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <el-dialog width="854px" :title="titles" :visible.sync="visibility" :show-close="isClose" :close-on-click-modal="isClose"
2
+  <el-dialog width="854px" :title="titles" :visible.sync="visibility" :close-on-click-modal="isClose"
3 3
              :close-on-press-escape="isClose">
4 4
 
5 5
     <el-form class="demo-form-inline"
@@ -130,6 +130,7 @@
130 130
         good_unit: '',
131 131
         isClose: false,
132 132
         size: 11,
133
+        visibility:false,
133 134
         form: {
134 135
           good_id: '',
135 136
           specification_name: '',
@@ -155,10 +156,7 @@
155 156
       }
156 157
     },
157 158
     props: {
158
-      visibility: {
159
-        type: Boolean,
160
-        default: false
161
-      },
159
+
162 160
       titles: {
163 161
         type: String,
164 162
         default: ''
@@ -174,6 +172,12 @@
174 172
 
175 173
     },
176 174
     methods: {
175
+      show:function(){
176
+        this.visibility = true
177
+
178
+      },hide:function(){
179
+        this.visibility = false
180
+      },
177 181
       cancle: function(formName) {
178 182
         this.$emit('dialog-cancle', this.getValue())
179 183
       },

+ 9 - 6
src/xt_pages/stock/Dialog/goodTypeDialog.vue 查看文件

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <el-dialog width="430px" :title="titles" :visible.sync="visibility" :show-close="isClose" :close-on-click-modal="isClose"
2
+  <el-dialog width="430px" :title="titles" :visible.sync="visibility"  :close-on-click-modal="isClose"
3 3
              :close-on-press-escape="isClose">
4 4
     <el-form :rules="rules" ref="formValue" :model="formValue" label-width="80px">
5 5
       <el-row>
@@ -17,7 +17,7 @@
17 17
           </el-form-item>
18 18
         </el-col>
19 19
       </el-row>
20
-      
20
+
21 21
 
22 22
     </el-form>
23 23
 
@@ -37,6 +37,7 @@ export default {
37 37
   name: "goodTypeDialog",
38 38
   data() {
39 39
     return {
40
+      visibility:false,
40 41
       isClose: false,
41 42
       labelPosition: 'right',
42 43
       resetForm: {
@@ -51,10 +52,6 @@ export default {
51 52
     };
52 53
   },
53 54
   props: {
54
-    visibility: {
55
-      type: Boolean,
56
-      default: false
57
-    },
58 55
     titles: {
59 56
       type: String,
60 57
       default: ""
@@ -68,6 +65,12 @@ export default {
68 65
     }
69 66
   },
70 67
   methods: {
68
+    show:function(){
69
+      this.visibility = true
70
+
71
+    },hide:function(){
72
+      this.visibility = false
73
+    },
71 74
     cancle: function(formName) {
72 75
       this.$emit("dialog-cancle");
73 76
       this.$refs[formName].resetFields();

+ 14 - 9
src/xt_pages/stock/Dialog/manufacturerOrDealerDialog.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2
-  <el-dialog width="854px" :title="titles" :visible.sync="visibility" :show-close="isClose" :close-on-click-modal="isClose"
3
-             :close-on-press-escape="isClose">  
2
+  <el-dialog width="854px" :title="titles" :visible.sync="visibility" :close-on-click-modal="isClose"
3
+             :close-on-press-escape="isClose" >
4 4
 
5 5
     <el-form :model="formValue" :rules="rules" ref="formValue" class="demo-form-inline"
6 6
              :label-position="labelPosition"
@@ -32,7 +32,7 @@
32 32
     </el-row>
33 33
 
34 34
 
35
-    <el-row>    
35
+    <el-row>
36 36
       <el-col :span="8">
37 37
         <el-form-item label="联系地址">
38 38
           <el-input  v-model="formValue.contact_address"></el-input>
@@ -51,7 +51,7 @@
51 51
         </el-form-item>
52 52
       </el-col>
53 53
     </el-row>
54
-    
54
+
55 55
       <el-col>
56 56
         <el-form-item label="备注">
57 57
           <el-input  type="textarea" :row="5" v-model="formValue.remark"
@@ -85,6 +85,7 @@
85 85
 
86 86
 
87 87
       return {
88
+        visibility:false,
88 89
         labelPosition: 'right',
89 90
         isClose: false,
90 91
         form: {
@@ -120,10 +121,7 @@
120 121
       }
121 122
     },
122 123
     props: {
123
-      visibility: {
124
-        type: Boolean,
125
-        default: false
126
-      },
124
+
127 125
       titles: {
128 126
         type: String,
129 127
         default: "",
@@ -143,7 +141,14 @@
143 141
       }
144 142
     },
145 143
     methods: {
144
+      show:function(){
145
+        this.visibility = true
146
+
147
+      },hide:function(){
148
+        this.visibility = false
149
+      },
146 150
       cancle: function (formName) {
151
+        console.log("11111")
147 152
         this.$emit('dialog-cancle', this.getValue());
148 153
         this.$refs['formValue'].resetFields();
149 154
       },
@@ -165,7 +170,7 @@
165 170
         form['type'] = this.type
166 171
         form['isCreated'] = this.isCreated
167 172
         return form
168
-      },
173
+      }
169 174
     },
170 175
 
171 176
   }

+ 8 - 5
src/xt_pages/stock/Dialog/salesReturnDialog.vue 查看文件

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <el-dialog :title="propForm.title" :visible.sync="visibility" :show-close="isClose" :close-on-click-modal="isClose"
2
+  <el-dialog :title="propForm.title" :visible.sync="visibility"  :close-on-click-modal="isClose"
3 3
              :close-on-press-escape="isClose">
4 4
 
5 5
     <div class="filter-container">
@@ -70,6 +70,7 @@
70 70
     name: 'salesReturnDialog',
71 71
     data() {
72 72
       return {
73
+        visibility:false,
73 74
         goodInfo: [],
74 75
         goodInfoTableData: [],
75 76
         keywords: '',
@@ -82,13 +83,15 @@
82 83
       propForm: {
83 84
         type: Object
84 85
       },
85
-      visibility: {
86
-        type: Boolean,
87
-        default: false
88
-      }
89 86
 
90 87
     },
91 88
     methods: {
89
+      hide:function(){
90
+        this.visibility = false
91
+      },
92
+      show:function(){
93
+        this.visibility = true
94
+      },
92 95
       goodTypeTableChange: function(currentRow, oldCurrentRow) {
93 96
         this.currentGoodTypeId = currentRow.id
94 97
 

+ 9 - 7
src/xt_pages/stock/Dialog/stockInDialog.vue 查看文件

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <el-dialog :title="propForm.title" :visible.sync="visibility" :show-close="isClose" :close-on-click-modal="isClose"
2
+  <el-dialog :title="propForm.title" :visible.sync="visibility" :close-on-click-modal="isClose"
3 3
              :close-on-press-escape="isClose">
4 4
 
5 5
     <div class="filter-container">
@@ -77,20 +77,22 @@
77 77
         keywords: '',
78 78
         multipleSelection: [],
79 79
         currentGoodTypeId: 0,
80
-        isClose: false
80
+        isClose: false,
81
+        visibility: false,
81 82
       }
82 83
     },
83 84
     props: {
84 85
       propForm: {
85 86
         type: Object
86 87
       },
87
-      visibility: {
88
-        type: Boolean,
89
-        default: false
90
-      }
91
-
92 88
     },
93 89
     methods: {
90
+      hide:function(){
91
+        this.visibility = false
92
+      },
93
+      show:function(){
94
+        this.visibility = true
95
+      },
94 96
       goodTypeTableChange: function(currentRow, oldCurrentRow) {
95 97
         this.currentGoodTypeId = currentRow.id
96 98
         const params = {

+ 11 - 6
src/xt_pages/stock/cancelStockOrderAdd.vue 查看文件

@@ -10,7 +10,7 @@
10 10
 
11 11
   <div class="app-container">
12 12
 
13
-    <sales-return-dialog :propForm="propForm"
13
+    <sales-return-dialog ref="dialog" :propForm="propForm"
14 14
                          :visibility="isVisibility"
15 15
                          v-on:dialog-comfirm="comfirm"
16 16
                          v-on:dialog-cancle="cancle"></sales-return-dialog>
@@ -26,7 +26,7 @@
26 26
                           value-format="yyyy-MM-dd"></el-date-picker>
27 27
         </div>
28 28
         <div class="cell clearfix">
29
-          <label class="title"><span class="name">厂商</span> : </label>
29
+          <label class="title"><span class="name">厂商<span style="color: red;margin-left: -15px">*</span></span> : </label>
30 30
           <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" @change="changeManufacturer()">
31 31
             <el-option
32 32
               v-for="(option, index) in manufacturer"
@@ -183,7 +183,7 @@
183 183
     },
184 184
     methods: {
185 185
       comfirm: function(val) {
186
-        this.isVisibility = false
186
+        this.$refs.dialog.hide()
187 187
         if (val.selectedGoodInfo.length > 0) {
188 188
           for (let i = val.selectedGoodInfo.length - 1; ;i--) {
189 189
             if (i == 0) {
@@ -194,14 +194,19 @@
194 194
               tempForm['good_type_id'] = val.goodTypeId
195 195
               tempForm['good_id'] = val.selectedGoodInfo[i].id
196 196
               tempForm['return_count'] = ''
197
-              this.recordInfo.recordData.push(tempForm)
197
+              // this.recordInfo.recordData.push(tempForm)
198
+              this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
199
+
200
+
201
+
198 202
             }
199 203
           }
200 204
         }
201 205
 
202 206
         this.currentIndex = -1
203 207
       }, cancle: function() {
204
-        this.isVisibility = false
208
+        this.$refs.dialog.hide()
209
+
205 210
       }, GetConfigInfo: function() {
206 211
         const params = {
207 212
           type: this.$route.query.type
@@ -292,7 +297,7 @@
292 297
           this.$message.error('请先选择厂商')
293 298
           return
294 299
         } else {
295
-          this.isVisibility = true
300
+          this.$refs.dialog.show()
296 301
           console.log(this.form.manufacturer)
297 302
           for (let i = 0; i < this.propForm.goodInfo.length; i++) {
298 303
             if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {

+ 2 - 1
src/xt_pages/stock/cancelStockOrderEdit.vue 查看文件

@@ -178,7 +178,8 @@
178 178
               tempForm['good_type_id'] = val.goodTypeId
179 179
               tempForm['good_id'] = val.selectedGoodInfo[i].id
180 180
               tempForm['count'] = ''
181
-              this.recordInfo.recordData.push(tempForm)
181
+              this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
182
+
182 183
             }
183 184
           }
184 185
         }

+ 15 - 17
src/xt_pages/stock/config/dealer.vue 查看文件

@@ -2,7 +2,7 @@
2 2
 
3 3
   <div class=" sign-and-weigh-box" style="background: white">
4 4
 
5
-    <manufacturer-or-dealer-dialog :titles="dealerDialog.titles" :formValue="dealerDialog.formValue"
5
+    <manufacturer-or-dealer-dialog ref="dialog" :titles="dealerDialog.titles" :formValue="dealerDialog.formValue"
6 6
                                    :visibility="dealerDialog.isVisibility"
7 7
                                    :type="dealerDialog.type" :isCreated="dealerDialog.isCreated"
8 8
                                    v-on:dialog-comfirm="manufacturerDialogComfirm"
@@ -20,35 +20,34 @@
20 20
 
21 21
         <!--<el-button style="float:right;margin-bottom: 10px" type="primary" @click="showDialog">新增经销商</el-button>-->
22 22
 
23
-        <el-table :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" :data="dealerData" :class="signAndWeighBoxPatients" style="width: 100%" border
23
+        <el-table :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" :data="dealerData"  style="width: 100%" border
24 24
                   v-loading="loading"
25 25
         >
26 26
 
27
-          <el-table-column type="index" label="序号" min-width="20" align="center"></el-table-column>
28
-          <el-table-column label="经销商编码" min-width="30" align="center">
27
+          <el-table-column label="经销商编码"  align="center">
29 28
             <template slot-scope="scope">
30 29
               {{scope.row.dealer_code}}
31 30
             </template>
32 31
           </el-table-column>
33
-          <el-table-column label="经销商名称" min-width="30" align="center">
32
+          <el-table-column label="经销商名称" align="center">
34 33
             <template slot-scope="scope">
35 34
               {{scope.row.dealer_name}}
36 35
 
37 36
             </template>
38 37
           </el-table-column>
39
-          <el-table-column label="联系人" min-width="30" align="center">
38
+          <el-table-column label="联系人" align="center">
40 39
             <template slot-scope="scope">
41 40
               {{scope.row.contact}}
42 41
 
43 42
             </template>
44 43
           </el-table-column>
45
-          <el-table-column label="联系人电话" min-width="30" align="center">
44
+          <el-table-column label="联系人电话"  align="center">
46 45
             <template slot-scope="scope">
47 46
               {{scope.row.contact_phone}}
48 47
 
49 48
             </template>
50 49
           </el-table-column>
51
-          <el-table-column label="联系地址" min-width="70" align="center">
50
+          <el-table-column label="联系地址"  align="center">
52 51
             <template slot-scope="scope">
53 52
               {{scope.row.contact_address}}
54 53
             </template>
@@ -72,11 +71,6 @@
72 71
                 </el-button>
73 72
               </el-tooltip>
74 73
 
75
-              <!--<el-button-->
76
-                <!--size="mini"-->
77
-                <!--type="primary"-->
78
-                <!--@click="showDetails(scope.$index, scope.row)">查看详情-->
79
-              <!--</el-button>-->
80 74
             </template>
81 75
           </el-table-column>
82 76
 
@@ -186,7 +180,8 @@
186 180
             this.dealerDialog.formValue.contact_address = response.data.data.dealer.contact_address
187 181
             this.dealerDialog.formValue.remark = response.data.data.dealer.remark
188 182
             this.dealerDialog.isCreated = 2
189
-            this.dealerDialog.isVisibility = true
183
+            this.$refs.dialog.show()
184
+
190 185
             this.dealer_code = response.data.data.dealer.dealer_code
191 186
 
192 187
           }
@@ -246,7 +241,8 @@
246 241
         });
247 242
       },
248 243
       manufacturerDialogComfirm: function (val) {
249
-        this.dealerDialog.isVisibility = false
244
+        this.$refs.dialog.hide()
245
+
250 246
 
251 247
         if (val.isCreated == 2) { //修改
252 248
           let params = {
@@ -305,12 +301,14 @@
305 301
 
306 302
       },
307 303
       manufacturerDialogCancle: function () {
308
-        this.dealerDialog.isVisibility = false
304
+        this.$refs.dialog.hide()
305
+
309 306
       },
310 307
       showDialog: function () {
311 308
         // this.manufacturerDialog.formValue = {}
312 309
         this.dealerDialog.formValue = Object.assign({}, this.dealerDialog.resetForm)
313
-        this.dealerDialog.isVisibility = true
310
+        this.$refs.dialog.show()
311
+
314 312
         this.dealerDialog.isCreated = 1
315 313
 
316 314
       }, handleSizeChange(val) {

+ 16 - 17
src/xt_pages/stock/config/goodInfo.vue 查看文件

@@ -3,7 +3,7 @@
3 3
   <div class=" sign-and-weigh-box" style="background: white">
4 4
 
5 5
 
6
-    <good-info-dailog :titles="goodInfo.goodInfoDialog.goodInfoTitle" :formValue="goodInfo.goodInfoDialog.formValue"
6
+    <good-info-dailog ref="dialog" :titles="goodInfo.goodInfoDialog.goodInfoTitle" :formValue="goodInfo.goodInfoDialog.formValue"
7 7
                       :visibility="goodInfo.goodInfoDialog.isVisibility"
8 8
                       :isCreated="goodInfo.goodInfoDialog.isCreated" v-on:dialog-comfirm="goodInfoDialogComfirm"
9 9
                       v-on:dialog-cancle="goodInfoDialogCancle"></good-info-dailog>
@@ -17,43 +17,43 @@
17 17
           <el-button size="small" icon="el-icon-circle-plus-outline" style="float: right;margin-bottom: 15px" type="primary" @click="showInfoDialog">新增</el-button>
18 18
         </div>
19 19
 
20
-        <el-table :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" :data="goodInfo.goodInfoData" :class="signAndWeighBoxPatients" style="width: 100%" border
20
+        <el-table :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" :data="goodInfo.goodInfoData"  style="width: 100%" border
21 21
                   v-loading="goodInfo.loading"
22 22
         >
23
-          <el-table-column label="商品编码" min-width="30" align="center">
23
+          <el-table-column label="商品编码"  align="center">
24 24
             <template slot-scope="scope">
25 25
               {{scope.row.good_code}}
26 26
             </template>
27 27
           </el-table-column>
28
-          <el-table-column label="规格名称" min-width="30" align="center">
28
+          <el-table-column label="规格名称"  align="center">
29 29
             <template slot-scope="scope">
30 30
               {{scope.row.specification_name}}
31 31
 
32 32
             </template>
33 33
           </el-table-column>
34 34
 
35
-          <el-table-column label="进价" min-width="30" align="center">
35
+          <el-table-column label="进价"  align="center">
36 36
             <template slot-scope="scope">
37 37
               {{scope.row.buy_price}}
38 38
 
39 39
             </template>
40 40
           </el-table-column>
41
-          <el-table-column label="出货价" min-width="30" align="center">
41
+          <el-table-column label="出货价"  align="center">
42 42
             <template slot-scope="scope">
43 43
               {{scope.row.sell_price}}
44 44
             </template>
45 45
           </el-table-column>
46
-          <el-table-column label="有效期预警" min-width="30" align="center">
46
+          <el-table-column label="有效期预警"  align="center">
47 47
             <template slot-scope="scope">
48 48
               {{scope.row.expiry_date_warn_day_count}}
49 49
             </template>
50 50
           </el-table-column>
51
-          <el-table-column label="库存预警" min-width="30" align="center">
51
+          <el-table-column label="库存预警" align="center">
52 52
             <template slot-scope="scope">
53 53
               {{scope.row.stock_warn_count}}
54 54
             </template>
55 55
           </el-table-column>
56
-          <el-table-column label="操作" align="center" min-width="100">
56
+          <el-table-column label="操作" align="center" >
57 57
             <template slot-scope="scope">
58 58
               <el-tooltip class="item" effect="dark" content="编辑" placement="top">
59 59
                 <el-button
@@ -72,11 +72,6 @@
72 72
                 </el-button>
73 73
               </el-tooltip>
74 74
 
75
-              <!--<el-button-->
76
-                <!--size="mini"-->
77
-                <!--type="primary"-->
78
-                <!--@click="showGoodInfoDetails(scope.$index, scope.row)">详情-->
79
-              <!--</el-button>-->
80 75
             </template>
81 76
           </el-table-column>
82 77
 
@@ -216,9 +211,10 @@
216 211
             this.goodInfo.goodInfoDialog.formValue.is_reuse = response.data.data.goodInfo.is_reuse.toString()
217 212
             this.goodInfo.goodInfoDialog.formValue.remark = response.data.data.goodInfo.remark
218 213
             this.goodInfo.goodInfoDialog.isCreated = 2
219
-            this.goodInfo.goodInfoDialog.isVisibility = true
220 214
             this.goodInfo.good_code = response.data.data.goodInfo.good_code
221 215
             this.goodInfo.goodInfoDialog.formValue.good_id =response.data.data.goodInfo.good_type_id
216
+            this.$refs.dialog.show()
217
+
222 218
           }
223 219
         });
224 220
 
@@ -327,7 +323,8 @@
327 323
         });
328 324
 
329 325
       }, goodInfoDialogComfirm: function (val) {
330
-        this.goodInfo.goodInfoDialog.isVisibility = false
326
+        this.$refs.dialog.hide()
327
+
331 328
         if (val.isCreated == 2) { //修改
332 329
           val['id'] = this.goodInfo.editGoodId
333 330
           val['good_code'] = this.goodInfo.good_code
@@ -374,9 +371,11 @@
374 371
 
375 372
       },
376 373
       goodInfoDialogCancle: function () {
377
-        this.goodInfo.goodInfoDialog.isVisibility = false
374
+        this.$refs.dialog.hide()
375
+
378 376
 
379 377
       }, showInfoDialog: function () {
378
+        this.$refs.dialog.show()
380 379
         this.getAllDealer()
381 380
         this.getAllManufacturer()
382 381
         this.goodInfo.goodInfoDialog.formValue.goodType = []

+ 11 - 9
src/xt_pages/stock/config/goodType.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
 
3 3
   <div class=" sign-and-weigh-box" style="background: white">
4
-    <good-type-dialog :titles="goodType.goodTypeDialog.goodTypeTitle" :formValue="goodType.goodTypeDialog.formValue"
4
+    <good-type-dialog ref="dialog" :titles="goodType.goodTypeDialog.goodTypeTitle" :formValue="goodType.goodTypeDialog.formValue"
5 5
                       :visibility="goodType.goodTypeDialog.isVisibility"
6 6
                       :isCreated="goodType.goodTypeDialog.isCreated" v-on:dialog-comfirm="goodTypeDialogComfirm"
7 7
                       v-on:dialog-cancle="goodTypeDialogCancle"></good-type-dialog>
@@ -18,23 +18,23 @@
18 18
 
19 19
         <div style="margin-bottom: 10px;">
20 20
         </div>
21
-        <el-table :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" :data="goodType.goodTypeData" :class="signAndWeighBoxPatients" style="width: 100%" border
21
+        <el-table :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" :data="goodType.goodTypeData"  style="width: 100%" border
22 22
                   highlight-current-row
23 23
                   @row-click="onRowClick"
24 24
                   :row-class-name="tableRowClassName"
25 25
                   v-loading="goodType.loading"
26 26
         >
27
-          <el-table-column label="类型编码" min-width="30" align="center">
27
+          <el-table-column label="类型编码" align="center">
28 28
             <template slot-scope="scope">
29 29
               {{scope.row.type_code}}
30 30
             </template>
31 31
           </el-table-column>
32
-          <el-table-column label="类型名称" min-width="30" align="center">
32
+          <el-table-column label="类型名称" align="center">
33 33
             <template slot-scope="scope">
34 34
               {{scope.row.type_name}}
35 35
             </template>
36 36
           </el-table-column>
37
-          <el-table-column label="操作" align="center" min-width="70">
37
+          <el-table-column label="操作" align="center" >
38 38
             <template slot-scope="scope">
39 39
               <el-tooltip class="item" effect="dark" content="编辑" placement="top">
40 40
                 <el-button
@@ -208,7 +208,7 @@
208 208
             this.goodType.goodTypeDialog.formValue.remark = response.data.data.goodType.remark
209 209
             this.goodType.goodTypeDialog.formValue.type_name = response.data.data.goodType.type_name
210 210
             this.goodType.goodTypeDialog.isCreated = 2
211
-            this.goodType.goodTypeDialog.isVisibility = true
211
+            this.$refs.dialog.show()
212 212
             this.goodType.type_code = response.data.data.goodType.type_code
213 213
 
214 214
           }
@@ -265,7 +265,7 @@
265 265
 
266 266
 
267 267
       goodTypeDialogComfirm: function (val) {
268
-        this.goodType.goodTypeDialog.isVisibility = false
268
+        this.$refs.dialog.hide()
269 269
 
270 270
         if (val.isCreated == 2) { //修改
271 271
           let params = {
@@ -314,11 +314,13 @@
314 314
 
315 315
       },
316 316
       goodTypeDialogCancle: function () {
317
-        this.goodType.goodTypeDialog.isVisibility = false
317
+        this.$refs.dialog.hide()
318
+
318 319
 
319 320
 
320 321
       }, showDialog: function () {
321
-        this.goodType.goodTypeDialog.isVisibility = true
322
+        this.$refs.dialog.show()
323
+
322 324
 
323 325
       }, getList() {
324 326
         this.goodType.loading = true

+ 153 - 210
src/xt_pages/stock/config/manufacturer.vue 查看文件

@@ -1,97 +1,97 @@
1 1
 <template>
2
-<div class="main-contain">
3
-  <div class=" sign-and-weigh-box" style="background: white">
4
-
5
-    <manufacturer-or-dealer-dialog :titles="manufacturerDialog.titles" :formValue="manufacturerDialog.formValue"
6
-                                   :visibility="manufacturerDialog.isVisibility"
7
-                                   :type="manufacturerDialog.type" :isCreated="manufacturerDialog.isCreated"
8
-                                   v-on:dialog-comfirm="manufacturerDialogComfirm"
9
-                                   v-on:dialog-cancle="manufacturerDialogCancle"></manufacturer-or-dealer-dialog>
10
-
11
-    <el-row>
12
-      <el-col>
13
-
14
-        <div>
15
-          <el-button size="small" icon="el-icon-circle-plus-outline" style="float: right;margin-bottom: 15px" type="primary" @click="showDialog">新增</el-button>
16
-        </div>
17
-
18
-        <!--<div class="dataTitle"></div>-->
19
-
20
-        <el-table :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" :data="manufacturerData" :class="signAndWeighBoxPatients" style="width: 100%" border
21
-                  v-loading="loading"
22
-        >
23
-          <el-table-column type="index" label="序号" min-width="20" align="center"></el-table-column>
24
-          <el-table-column label="厂家编码" min-width="30" align="center">
25
-            <template slot-scope="scope">
26
-              {{scope.row.manufacturer_code}}
27
-            </template>
28
-          </el-table-column>
29
-          <el-table-column label="厂家名称" min-width="30" align="center">
30
-            <template slot-scope="scope">
31
-              {{scope.row.manufacturer_name}}
32
-
33
-            </template>
34
-          </el-table-column>
35
-          <el-table-column label="联系人" min-width="30" align="center">
36
-            <template slot-scope="scope">
37
-              {{scope.row.contact}}
38
-
39
-            </template>
40
-          </el-table-column>
41
-          <el-table-column label="联系人电话" min-width="30" align="center">
42
-            <template slot-scope="scope">
43
-              {{scope.row.contact_phone}}
44
-
45
-            </template>
46
-          </el-table-column>
47
-          <el-table-column label="联系地址" min-width="70" align="center">
48
-            <template slot-scope="scope">
49
-              {{scope.row.contact_address}}
50
-            </template>
51
-          </el-table-column>
52
-          <el-table-column label="操作" align="center">
53
-            <template slot-scope="scope">
54
-              <el-tooltip class="item" effect="dark" content="编辑" placement="top">
55
-                <el-button
56
-                  size="small"
57
-                  type="primary"
58
-                  icon="el-icon-edit-outline"
59
-                  @click="handleEdit(scope.$index, scope.row)">
60
-                </el-button>
61
-              </el-tooltip>
62
-              <el-tooltip class="item" effect="dark" content="删除" placement="top">
63
-                <el-button
64
-                  size="small"
65
-                  type="danger"
66
-                  icon="el-icon-delete"
67
-                  @click="handleDelete(scope.$index, scope.row)">
68
-                </el-button>
69
-              </el-tooltip>
70
-              <!--<el-button-->
2
+  <div class="main-contain">
3
+    <div class=" sign-and-weigh-box" style="background: white">
4
+
5
+      <manufacturer-or-dealer-dialog ref="dialog" :titles="manufacturerDialog.titles" :formValue="manufacturerDialog.formValue"
6
+                                     :visibility="manufacturerDialog.isVisibility"
7
+                                     :type="manufacturerDialog.type" :isCreated="manufacturerDialog.isCreated"
8
+                                     v-on:dialog-comfirm="manufacturerDialogComfirm"
9
+                                     v-on:dialog-cancle="manufacturerDialogCancle"></manufacturer-or-dealer-dialog>
10
+
11
+      <el-row :gutter="15">
12
+        <el-col>
13
+
14
+          <div>
15
+            <el-button size="small" icon="el-icon-circle-plus-outline" style="float: right;margin-bottom: 15px"
16
+                       type="primary" @click="showDialog">新增
17
+            </el-button>
18
+          </div>
19
+
20
+
21
+          <el-table :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" :data="manufacturerData"
22
+                    style="width: 100%" border
23
+                    v-loading="loading"
24
+          >
25
+            <el-table-column label="厂家编码" align="center">
26
+              <template slot-scope="scope">
27
+                {{scope.row.manufacturer_code}}
28
+              </template>
29
+            </el-table-column>
30
+            <el-table-column label="厂家名称" align="center">
31
+              <template slot-scope="scope">
32
+                {{scope.row.manufacturer_name}}
33
+
34
+              </template>
35
+            </el-table-column>
36
+            <el-table-column label="联系人" align="center">
37
+              <template slot-scope="scope">
38
+                {{scope.row.contact}}
39
+
40
+              </template>
41
+            </el-table-column>
42
+            <el-table-column label="联系人电话" align="center">
43
+              <template slot-scope="scope">
44
+                {{scope.row.contact_phone}}
45
+
46
+              </template>
47
+            </el-table-column>
48
+            <el-table-column label="联系地址" align="center">
49
+              <template slot-scope="scope">
50
+                {{scope.row.contact_address}}
51
+              </template>
52
+            </el-table-column>
53
+            <el-table-column label="操作" align="center">
54
+              <template slot-scope="scope">
55
+                <el-tooltip class="item" effect="dark" content="编辑" placement="top">
56
+                  <el-button
57
+                    size="small"
58
+                    type="primary"
59
+                    icon="el-icon-edit-outline"
60
+                    @click="handleEdit(scope.$index, scope.row)">
61
+                  </el-button>
62
+                </el-tooltip>
63
+                <el-tooltip class="item" effect="dark" content="删除" placement="top">
64
+                  <el-button
65
+                    size="small"
66
+                    type="danger"
67
+                    icon="el-icon-delete"
68
+                    @click="handleDelete(scope.$index, scope.row)">
69
+                  </el-button>
70
+                </el-tooltip>
71
+                <!--<el-button-->
71 72
                 <!--size="mini"-->
72 73
                 <!--type="primary"-->
73 74
                 <!--@click="showDetails(scope.$index, scope.row)">查看详情-->
74
-              <!--</el-button>-->
75
-            </template>
76
-          </el-table-column>
77
-        </el-table>
78
-
79
-        <el-pagination
80
-          @size-change="handleSizeChange"
81
-          @current-change="handleCurrentChange"
82
-          :page-sizes="[7]"
83
-          :page-size="7"
84
-          background
85
-          align="right"
86
-          style="margin-top:20px;"
87
-          layout="total, sizes, prev, pager, next, jumper"
88
-          :total="total">
89
-        </el-pagination>
90
-
91
-      </el-col>
92
-    </el-row>
75
+                <!--</el-button>-->
76
+              </template>
77
+            </el-table-column>
78
+          </el-table>
79
+
80
+          <el-pagination
81
+            @size-change="handleSizeChange"
82
+            @current-change="handleCurrentChange"
83
+            :page-sizes="[7]"
84
+            :page-size="7"
85
+            background
86
+            align="right"
87
+            style="margin-top:20px;"
88
+            layout="total, sizes, prev, pager, next, jumper"
89
+            :total="total">
90
+          </el-pagination>
91
+          </el-col>
92
+      </el-row>
93
+    </div>
93 94
   </div>
94
-</div>
95 95
 
96 96
 </template>
97 97
 
@@ -99,17 +99,17 @@
99 99
   import manufacturerOrDealerDialog from '../Dialog/manufacturerOrDealerDialog'
100 100
   import {
101 101
     createManufacturer,
102
-    modifyManufacturer,
103
-    getManufacturerList,
104 102
     deleteManufacturer,
105
-    GetManufacturer
106
-  } from "@/api/stock";
103
+    GetManufacturer,
104
+    getManufacturerList,
105
+    modifyManufacturer
106
+  } from '@/api/stock'
107 107
 
108 108
   export default {
109 109
     components: {
110
-      manufacturerOrDealerDialog,
110
+      manufacturerOrDealerDialog
111 111
     },
112
-    name: "manufacturer",
112
+    name: 'manufacturer',
113 113
     data() {
114 114
       return {
115 115
         signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
@@ -120,11 +120,11 @@
120 120
 
121 121
         page: 1,
122 122
         limit: 7,
123
-        loading:false,
123
+        loading: false,
124 124
 
125 125
         manufacturer_code: '',
126 126
         editId: '',
127
-        editIndex:'',
127
+        editIndex: '',
128 128
         manufacturerDialog: {
129 129
           titles: '新增厂家',
130 130
           isVisibility: false,
@@ -138,7 +138,7 @@
138 138
             platform_number: '',
139 139
             email: '',
140 140
             contact_address: '',
141
-            remark: '',
141
+            remark: ''
142 142
           },
143 143
           resetForm: {
144 144
             manufacturer_name: '',
@@ -148,15 +148,14 @@
148 148
             platform_number: '',
149 149
             email: '',
150 150
             contact_address: '',
151
-            remark: '',
152
-          },
151
+            remark: ''
152
+          }
153 153
         }
154 154
 
155
-
156
-      };
155
+      }
157 156
     },
158 157
     methods: {
159
-      handleEdit: function (index, row) {
158
+      handleEdit: function(index, row) {
160 159
         this.editId = row.id
161 160
         this.editIndex = index
162 161
         let params = {
@@ -164,8 +163,8 @@
164 163
         }
165 164
         GetManufacturer(params).then(response => {
166 165
           if (response.data.state == 0) {
167
-            this.$message.error(response.data.msg);
168
-            return false;
166
+            this.$message.error(response.data.msg)
167
+            return false
169 168
           } else {
170 169
             this.manufacturerDialog.formValue.manufacturer_name = response.data.data.manufacturer.manufacturer_name
171 170
             this.manufacturerDialog.formValue.contact = response.data.data.manufacturer.contact
@@ -175,15 +174,14 @@
175 174
             this.manufacturerDialog.formValue.contact_address = response.data.data.manufacturer.contact_address
176 175
             this.manufacturerDialog.formValue.remark = response.data.data.manufacturer.remark
177 176
             this.manufacturerDialog.isCreated = 2
178
-            this.manufacturerDialog.isVisibility = true
177
+            this.$refs.dialog.show()
179 178
             this.manufacturer_code = response.data.data.manufacturer.manufacturer_code
180 179
 
181 180
           }
182
-        });
181
+        })
183 182
 
184 183
       },
185
-      handleDelete: function (index, row) {
186
-
184
+      handleDelete: function(index, row) {
187 185
 
188 186
         this.$confirm('确认删除这条厂家信息?', '删除厂家信息', {
189 187
           confirmButtonText: '确定',
@@ -196,31 +194,30 @@
196 194
 
197 195
           deleteManufacturer(params).then(response => {
198 196
             if (response.data.state == 0) {
199
-              this.$message.error(response.data.msg);
200
-              return false;
197
+              this.$message.error(response.data.msg)
198
+              return false
201 199
             } else {
202
-              this.manufacturerData.splice(index, 1);
200
+              this.manufacturerData.splice(index, 1)
203 201
               this.$notify({
204
-                title: "成功",
205
-                message: "厂家已经删除",
206
-                type: "success",
202
+                title: '成功',
203
+                message: '厂家已经删除',
204
+                type: 'success',
207 205
                 duration: 2000
208
-              });
206
+              })
209 207
             }
210
-          });
208
+          })
211 209
         }).catch(() => {
212
-        });
213
-
210
+        })
214 211
 
215 212
       },
216
-      showDetails: function (index, row) {
213
+      showDetails: function(index, row) {
217 214
         let params = {
218 215
           id: row.id
219 216
         }
220 217
         GetManufacturer(params).then(response => {
221 218
           if (response.data.state == 0) {
222
-            this.$message.error(response.data.msg);
223
-            return false;
219
+            this.$message.error(response.data.msg)
220
+            return false
224 221
           } else {
225 222
             this.manufacturerDialog.formValue.manufacturer_name = response.data.data.manufacturer.manufacturer_name
226 223
             this.manufacturerDialog.formValue.contact = response.data.data.manufacturer.contact
@@ -232,11 +229,11 @@
232 229
             this.manufacturerDialog.isCreated = 3
233 230
             this.manufacturerDialog.isVisibility = true
234 231
           }
235
-        });
232
+        })
236 233
       },
237
-      manufacturerDialogComfirm: function (val) {
238
-        this.manufacturerDialog.isVisibility = false
239
-
234
+      manufacturerDialogComfirm: function(val) {
235
+        // this.manufacturerDialog.isVisibility = false
236
+        this.$refs.dialog.hide()
240 237
         if (val.isCreated == 2) { //修改
241 238
           let params = {
242 239
             'manufacturer_name': val.manufacturer_name,
@@ -251,8 +248,8 @@
251 248
           }
252 249
           modifyManufacturer(params).then(response => {
253 250
             if (response.data.state == 0) {
254
-              this.$message.error(response.data.msg);
255
-              return false;
251
+              this.$message.error(response.data.msg)
252
+              return false
256 253
             } else {
257 254
               this.manufacturerData[this.editIndex].manufacturer_name = response.data.data.manufacturer.manufacturer_name
258 255
               this.manufacturerData[this.editIndex].contact = response.data.data.manufacturer.contact
@@ -263,61 +260,61 @@
263 260
               this.manufacturerData[this.editIndex].remark = response.data.data.manufacturer.remark
264 261
               this.manufacturerData[this.editIndex].manufacturer_code = response.data.data.manufacturer.manufacturer_code
265 262
               this.$notify({
266
-                title: "成功",
267
-                message: "修改成功",
268
-                type: "success",
263
+                title: '成功',
264
+                message: '修改成功',
265
+                type: 'success',
269 266
                 duration: 2000
270
-              });
267
+              })
271 268
 
272 269
             }
273
-          });
270
+          })
274 271
 
275 272
         } else if (val.isCreated == 1) { //新增
276 273
           createManufacturer(val).then(response => {
277 274
             if (response.data.state == 0) {
278
-              this.$message.error(response.data.msg);
279
-              return false;
275
+              this.$message.error(response.data.msg)
276
+              return false
280 277
             } else {
281 278
               this.manufacturerData.unshift(response.data.data.manufacturer)
282 279
               this.$notify({
283
-                title: "成功",
284
-                message: "新增成功",
285
-                type: "success",
280
+                title: '成功',
281
+                message: '新增成功',
282
+                type: 'success',
286 283
                 duration: 2000
287
-              });
284
+              })
288 285
 
289 286
             }
290
-          });
287
+          })
291 288
 
292 289
         }
293 290
 
294
-
295 291
       },
296
-      manufacturerDialogCancle: function () {
297
-        this.manufacturerDialog.isVisibility = false
292
+      manufacturerDialogCancle: function() {
293
+        this.$refs.dialog.hide()
294
+
298 295
       },
299
-      showDialog: function () {
296
+      showDialog: function() {
300 297
         this.manufacturerDialog.formValue = Object.assign({}, this.manufacturerDialog.resetForm)
301
-        this.manufacturerDialog.isVisibility = true
298
+        this.$refs.dialog.show()
302 299
         this.manufacturerDialog.isCreated = 1
303 300
 
304 301
       }, handleSizeChange(val) {
305
-        this.limit = val;
306
-        this.getList();
302
+        this.limit = val
303
+        this.getList()
307 304
       }, handleCurrentChange(val) {
308
-        this.page = val;
309
-        this.getList();
310
-      },getList(){
305
+        this.page = val
306
+        this.getList()
307
+      }, getList() {
311 308
         let params = {
312
-          'page':this.page,
313
-          'limit':this.limit
309
+          'page': this.page,
310
+          'limit': this.limit
314 311
         }
315 312
         this.loading = true
316 313
         getManufacturerList(params).then(response => {
317 314
           if (response.data.state == 0) {
318 315
             this.loading = false
319
-            this.$message.error(response.data.msg);
320
-            return false;
316
+            this.$message.error(response.data.msg)
317
+            return false
321 318
           } else {
322 319
             this.loading = false
323 320
             this.total = response.data.data.total
@@ -326,7 +323,7 @@
326 323
               this.manufacturerData.push(response.data.data.manufacturer[i])
327 324
             }
328 325
           }
329
-        });
326
+        })
330 327
 
331 328
       }
332 329
     },
@@ -334,62 +331,8 @@
334 331
       this.getList()
335 332
 
336 333
     }
337
-  };
338
-</script>
339
-
340
-<style rel="stylesheet/css" lang="scss" scoped>
341
-  .information {
342
-    border: 1px #dcdfe6 solid;
343
-    padding: 30px 20px 30px 20px;
344
-
345
-    .border {
346
-      border-bottom: 1px #dcdfe6 solid;
347
-      margin: 0px 0 20px 0;
348
-    }
349
-  }
350
-
351
-  .title {
352
-    height: 44px;
353
-    line-height: 44px;
354
-    padding: 0 0 0 10px;
355
-    margin: 0 0 10px 0;
356
-    // border-radius: 4px 4px 0 0;
357
-  }
358
-
359
-  .edit_separater {
360
-    border-top: 1px solid rgb(233, 233, 233);
361
-    margin-top: 15px;
362
-    margin-bottom: 15px;
363 334
   }
335
+</script>
364 336
 
365
-</style>
366
-
367
-<style>
368
-  .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
369
-    font-size: 12px;
370
-  }
371 337
 
372
-  .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
373
-    background: #6fb5fa;
374
-  }
375 338
 
376
-  .dataTitle {
377
-    color: #409eff;
378
-    font-size: 16px;
379
-    border-bottom: 1px #409eff solid;
380
-    height: 36px;
381
-    line-height: 30px;
382
-    margin: 0 0 15px 0;
383
-    position: relative;
384
-    padding: 0 0 6px 15px;
385
-  &::before {
386
-     position: absolute;
387
-     left: 0;
388
-     bottom: 10px;
389
-     content: "";
390
-     width: 2px;
391
-     height: 20px;
392
-     background: #409eff;
393
-   }
394
-  }
395
-</style>

+ 0 - 2
src/xt_pages/stock/otherCancelStockOrder.vue 查看文件

@@ -33,7 +33,6 @@
33 33
 
34 34
       </div>
35 35
 
36
-      <el-row :gutter="12" style="margin-top: 10px">
37 36
         <el-table
38 37
           :data="cancelStockDate"
39 38
           :class="signAndWeighBoxPatients"
@@ -115,7 +114,6 @@
115 114
           :total="total">
116 115
         </el-pagination>
117 116
 
118
-      </el-row>
119 117
     </div>
120 118
   </div>
121 119
 </template>

+ 2 - 1
src/xt_pages/stock/salesReturnEdit.vue 查看文件

@@ -184,7 +184,8 @@
184 184
               tempForm['good_type_id'] = val.goodTypeId
185 185
               tempForm['good_id'] = val.selectedGoodInfo[i].id
186 186
               tempForm['count'] = ''
187
-              this.recordInfo.recordData.push(tempForm)
187
+              this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
188
+
188 189
             }
189 190
           }
190 191
         }

+ 4 - 2
src/xt_pages/stock/salesReturnOrderAdd.vue 查看文件

@@ -22,7 +22,8 @@
22 22
 
23 23
 
24 24
       <div class="cell clearfix">
25
-        <label class="title"><span class="name">厂商</span> : </label>
25
+        <label class="title"><span class="name">厂商<span style="color: red;margin-left: -15px">*</span></span> : </label>
26
+
26 27
         <el-select v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer()">
27 28
           <el-option
28 29
             v-for="(option, index) in manufacturer"
@@ -203,7 +204,8 @@
203 204
               tempForm['good_id'] = val.selectedGoodInfo[i].id
204 205
               tempForm['return_count'] = ''
205 206
               tempForm['price'] = ''
206
-              this.recordInfo.recordData.push(tempForm)
207
+              this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
208
+
207 209
             }
208 210
           }
209 211
         }

+ 5 - 2
src/xt_pages/stock/stockInOrderAdd.vue 查看文件

@@ -22,7 +22,8 @@
22 22
       </div>
23 23
 
24 24
       <div class="cell clearfix">
25
-        <label class="title"><span class="name">厂商</span> : </label>
25
+        <label class="title"><span class="name">厂商<span style="color: red;margin-left: -15px">*</span></span> : </label>
26
+
26 27
         <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" @change="changeManufacturer()" >
27 28
           <el-option
28 29
             v-for="(option, index) in manufacturer"
@@ -356,7 +357,9 @@
356 357
               tempForm['remark'] = ''
357 358
               tempForm['dealer'] = ''
358 359
               tempForm['manufacturer'] = ''
359
-              this.recordInfo.recordData.push(tempForm)
360
+              // this.recordInfo.recordData.add(tempForm,this.currentIndex + i)
361
+              // this.recordInfo.recordData.push(tempForm)
362
+              this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
360 363
             }
361 364
           }
362 365
         }

+ 2 - 3
src/xt_pages/stock/stockInOrderDetail.vue 查看文件

@@ -79,13 +79,12 @@
79 79
           </template>
80 80
         </el-table-column>
81 81
         <el-table-column label="生产日期" min-width="40" align="center">
82
-          <template slot-scope="scope">
82
+          <template v-if="scope.row.product_date != 0" slot-scope="scope">
83 83
             {{scope.row.product_date | parseTime('{y}-{m}-{d}')}}
84
-
85 84
           </template>
86 85
         </el-table-column>
87 86
         <el-table-column label="有效日期" min-width="40" align="center">
88
-          <template slot-scope="scope">
87
+          <template v-if="scope.row.product_date != 0" slot-scope="scope">
89 88
             {{ scope.row.expiry_date | parseTime('{y}-{m}-{d}')}}
90 89
           </template>
91 90
         </el-table-column>

+ 2 - 1
src/xt_pages/stock/stockInOrderEdit.vue 查看文件

@@ -278,7 +278,8 @@ export default {
278 278
               tempForm['remark'] = ''
279 279
               tempForm['dealer'] = ''
280 280
               tempForm['manufacturer'] = ''
281
-              this.recordInfo.recordData.push(tempForm)
281
+              this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
282
+
282 283
             }
283 284
           }
284 285
         }

+ 3 - 2
src/xt_pages/stock/stockOutOrderAdd.vue 查看文件

@@ -25,7 +25,8 @@
25 25
 
26 26
 
27 27
     <div class="cell clearfix">
28
-      <label class="title"><span class="name">厂商</span> : </label>
28
+      <label class="title"><span class="name">厂商<span style="color: red;margin-left: -15px">*</span></span> : </label>
29
+
29 30
       <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商"  @change="changeManufacturer()">
30 31
         <el-option
31 32
           v-for="(option, index) in manufacturer"
@@ -223,8 +224,8 @@
223 224
               tempForm['count'] = ''
224 225
               tempForm['price'] = ''
225 226
               tempForm['remark'] = ''
227
+              this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
226 228
 
227
-              this.recordInfo.recordData.push(tempForm)
228 229
             }
229 230
           }
230 231
         }

+ 1 - 1
src/xt_pages/stock/stockOutOrderEdit.vue 查看文件

@@ -207,8 +207,8 @@
207 207
               tempForm['count'] = ''
208 208
               tempForm['price'] = ''
209 209
               tempForm['remark'] = ''
210
+              this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
210 211
 
211
-              this.recordInfo.recordData.push(tempForm)
212 212
             }
213 213
           }
214 214
         }

+ 3 - 3
src/xt_pages/user/components/PatientDetail.vue 查看文件

@@ -61,7 +61,7 @@
61 61
                 </el-radio-group>
62 62
               </el-form-item>
63 63
             </el-col>
64
-            <el-col :span="8" style="height:59px;"> 
64
+            <el-col :span="8" style="height:59px;">
65 65
               <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto"  >
66 66
                 <el-radio-group v-model="form.lapseto">
67 67
                   <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" disabled>{{item.label}}</el-radio>
@@ -235,7 +235,7 @@
235 235
             </el-checkbox-group>
236 236
           </el-form-item>
237 237
         </el-col>
238
-       
238
+
239 239
         <el-col :span="24">
240 240
           <el-form-item label="诊断 : " prop="diagnose">
241 241
             <!-- <textarea v-model="form.diagnose" class="textarea" disabled></textarea> -->
@@ -300,7 +300,7 @@
300 300
       <div id="print-info-box" >
301 301
         <div class="print_main_content">
302 302
             <div class="order_title">
303
-                方济医院血液透析门诊病历
303
+               {{orgname}} 血液透析门诊病历
304 304
             </div>
305 305
             <div>
306 306
                 <table>