Browse Source

解决禅道系统部分bug

csx 6 years ago
parent
commit
e95910dc4c

+ 3 - 1
src/xt_pages/data/druguseTemplate.vue View File

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

+ 1 - 2
src/xt_pages/data/index.vue View File

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

+ 9 - 5
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

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

+ 9 - 6
src/xt_pages/stock/Dialog/goodTypeDialog.vue View File

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

+ 14 - 9
src/xt_pages/stock/Dialog/manufacturerOrDealerDialog.vue View File

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

+ 8 - 5
src/xt_pages/stock/Dialog/salesReturnDialog.vue View File

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

+ 9 - 7
src/xt_pages/stock/Dialog/stockInDialog.vue View File

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

+ 11 - 6
src/xt_pages/stock/cancelStockOrderAdd.vue View File

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

+ 2 - 1
src/xt_pages/stock/cancelStockOrderEdit.vue View File

178
               tempForm['good_type_id'] = val.goodTypeId
178
               tempForm['good_type_id'] = val.goodTypeId
179
               tempForm['good_id'] = val.selectedGoodInfo[i].id
179
               tempForm['good_id'] = val.selectedGoodInfo[i].id
180
               tempForm['count'] = ''
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 View File

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

+ 16 - 17
src/xt_pages/stock/config/goodInfo.vue View File

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

+ 11 - 9
src/xt_pages/stock/config/goodType.vue View File

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

+ 153 - 210
src/xt_pages/stock/config/manufacturer.vue View File

1
 <template>
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
                 <!--size="mini"-->
72
                 <!--size="mini"-->
72
                 <!--type="primary"-->
73
                 <!--type="primary"-->
73
                 <!--@click="showDetails(scope.$index, scope.row)">查看详情-->
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
   </div>
94
   </div>
94
-</div>
95
 
95
 
96
 </template>
96
 </template>
97
 
97
 
99
   import manufacturerOrDealerDialog from '../Dialog/manufacturerOrDealerDialog'
99
   import manufacturerOrDealerDialog from '../Dialog/manufacturerOrDealerDialog'
100
   import {
100
   import {
101
     createManufacturer,
101
     createManufacturer,
102
-    modifyManufacturer,
103
-    getManufacturerList,
104
     deleteManufacturer,
102
     deleteManufacturer,
105
-    GetManufacturer
106
-  } from "@/api/stock";
103
+    GetManufacturer,
104
+    getManufacturerList,
105
+    modifyManufacturer
106
+  } from '@/api/stock'
107
 
107
 
108
   export default {
108
   export default {
109
     components: {
109
     components: {
110
-      manufacturerOrDealerDialog,
110
+      manufacturerOrDealerDialog
111
     },
111
     },
112
-    name: "manufacturer",
112
+    name: 'manufacturer',
113
     data() {
113
     data() {
114
       return {
114
       return {
115
         signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
115
         signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
120
 
120
 
121
         page: 1,
121
         page: 1,
122
         limit: 7,
122
         limit: 7,
123
-        loading:false,
123
+        loading: false,
124
 
124
 
125
         manufacturer_code: '',
125
         manufacturer_code: '',
126
         editId: '',
126
         editId: '',
127
-        editIndex:'',
127
+        editIndex: '',
128
         manufacturerDialog: {
128
         manufacturerDialog: {
129
           titles: '新增厂家',
129
           titles: '新增厂家',
130
           isVisibility: false,
130
           isVisibility: false,
138
             platform_number: '',
138
             platform_number: '',
139
             email: '',
139
             email: '',
140
             contact_address: '',
140
             contact_address: '',
141
-            remark: '',
141
+            remark: ''
142
           },
142
           },
143
           resetForm: {
143
           resetForm: {
144
             manufacturer_name: '',
144
             manufacturer_name: '',
148
             platform_number: '',
148
             platform_number: '',
149
             email: '',
149
             email: '',
150
             contact_address: '',
150
             contact_address: '',
151
-            remark: '',
152
-          },
151
+            remark: ''
152
+          }
153
         }
153
         }
154
 
154
 
155
-
156
-      };
155
+      }
157
     },
156
     },
158
     methods: {
157
     methods: {
159
-      handleEdit: function (index, row) {
158
+      handleEdit: function(index, row) {
160
         this.editId = row.id
159
         this.editId = row.id
161
         this.editIndex = index
160
         this.editIndex = index
162
         let params = {
161
         let params = {
164
         }
163
         }
165
         GetManufacturer(params).then(response => {
164
         GetManufacturer(params).then(response => {
166
           if (response.data.state == 0) {
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
           } else {
168
           } else {
170
             this.manufacturerDialog.formValue.manufacturer_name = response.data.data.manufacturer.manufacturer_name
169
             this.manufacturerDialog.formValue.manufacturer_name = response.data.data.manufacturer.manufacturer_name
171
             this.manufacturerDialog.formValue.contact = response.data.data.manufacturer.contact
170
             this.manufacturerDialog.formValue.contact = response.data.data.manufacturer.contact
175
             this.manufacturerDialog.formValue.contact_address = response.data.data.manufacturer.contact_address
174
             this.manufacturerDialog.formValue.contact_address = response.data.data.manufacturer.contact_address
176
             this.manufacturerDialog.formValue.remark = response.data.data.manufacturer.remark
175
             this.manufacturerDialog.formValue.remark = response.data.data.manufacturer.remark
177
             this.manufacturerDialog.isCreated = 2
176
             this.manufacturerDialog.isCreated = 2
178
-            this.manufacturerDialog.isVisibility = true
177
+            this.$refs.dialog.show()
179
             this.manufacturer_code = response.data.data.manufacturer.manufacturer_code
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
         this.$confirm('确认删除这条厂家信息?', '删除厂家信息', {
186
         this.$confirm('确认删除这条厂家信息?', '删除厂家信息', {
189
           confirmButtonText: '确定',
187
           confirmButtonText: '确定',
196
 
194
 
197
           deleteManufacturer(params).then(response => {
195
           deleteManufacturer(params).then(response => {
198
             if (response.data.state == 0) {
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
             } else {
199
             } else {
202
-              this.manufacturerData.splice(index, 1);
200
+              this.manufacturerData.splice(index, 1)
203
               this.$notify({
201
               this.$notify({
204
-                title: "成功",
205
-                message: "厂家已经删除",
206
-                type: "success",
202
+                title: '成功',
203
+                message: '厂家已经删除',
204
+                type: 'success',
207
                 duration: 2000
205
                 duration: 2000
208
-              });
206
+              })
209
             }
207
             }
210
-          });
208
+          })
211
         }).catch(() => {
209
         }).catch(() => {
212
-        });
213
-
210
+        })
214
 
211
 
215
       },
212
       },
216
-      showDetails: function (index, row) {
213
+      showDetails: function(index, row) {
217
         let params = {
214
         let params = {
218
           id: row.id
215
           id: row.id
219
         }
216
         }
220
         GetManufacturer(params).then(response => {
217
         GetManufacturer(params).then(response => {
221
           if (response.data.state == 0) {
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
           } else {
221
           } else {
225
             this.manufacturerDialog.formValue.manufacturer_name = response.data.data.manufacturer.manufacturer_name
222
             this.manufacturerDialog.formValue.manufacturer_name = response.data.data.manufacturer.manufacturer_name
226
             this.manufacturerDialog.formValue.contact = response.data.data.manufacturer.contact
223
             this.manufacturerDialog.formValue.contact = response.data.data.manufacturer.contact
232
             this.manufacturerDialog.isCreated = 3
229
             this.manufacturerDialog.isCreated = 3
233
             this.manufacturerDialog.isVisibility = true
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
         if (val.isCreated == 2) { //修改
237
         if (val.isCreated == 2) { //修改
241
           let params = {
238
           let params = {
242
             'manufacturer_name': val.manufacturer_name,
239
             'manufacturer_name': val.manufacturer_name,
251
           }
248
           }
252
           modifyManufacturer(params).then(response => {
249
           modifyManufacturer(params).then(response => {
253
             if (response.data.state == 0) {
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
             } else {
253
             } else {
257
               this.manufacturerData[this.editIndex].manufacturer_name = response.data.data.manufacturer.manufacturer_name
254
               this.manufacturerData[this.editIndex].manufacturer_name = response.data.data.manufacturer.manufacturer_name
258
               this.manufacturerData[this.editIndex].contact = response.data.data.manufacturer.contact
255
               this.manufacturerData[this.editIndex].contact = response.data.data.manufacturer.contact
263
               this.manufacturerData[this.editIndex].remark = response.data.data.manufacturer.remark
260
               this.manufacturerData[this.editIndex].remark = response.data.data.manufacturer.remark
264
               this.manufacturerData[this.editIndex].manufacturer_code = response.data.data.manufacturer.manufacturer_code
261
               this.manufacturerData[this.editIndex].manufacturer_code = response.data.data.manufacturer.manufacturer_code
265
               this.$notify({
262
               this.$notify({
266
-                title: "成功",
267
-                message: "修改成功",
268
-                type: "success",
263
+                title: '成功',
264
+                message: '修改成功',
265
+                type: 'success',
269
                 duration: 2000
266
                 duration: 2000
270
-              });
267
+              })
271
 
268
 
272
             }
269
             }
273
-          });
270
+          })
274
 
271
 
275
         } else if (val.isCreated == 1) { //新增
272
         } else if (val.isCreated == 1) { //新增
276
           createManufacturer(val).then(response => {
273
           createManufacturer(val).then(response => {
277
             if (response.data.state == 0) {
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
             } else {
277
             } else {
281
               this.manufacturerData.unshift(response.data.data.manufacturer)
278
               this.manufacturerData.unshift(response.data.data.manufacturer)
282
               this.$notify({
279
               this.$notify({
283
-                title: "成功",
284
-                message: "新增成功",
285
-                type: "success",
280
+                title: '成功',
281
+                message: '新增成功',
282
+                type: 'success',
286
                 duration: 2000
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
         this.manufacturerDialog.formValue = Object.assign({}, this.manufacturerDialog.resetForm)
297
         this.manufacturerDialog.formValue = Object.assign({}, this.manufacturerDialog.resetForm)
301
-        this.manufacturerDialog.isVisibility = true
298
+        this.$refs.dialog.show()
302
         this.manufacturerDialog.isCreated = 1
299
         this.manufacturerDialog.isCreated = 1
303
 
300
 
304
       }, handleSizeChange(val) {
301
       }, handleSizeChange(val) {
305
-        this.limit = val;
306
-        this.getList();
302
+        this.limit = val
303
+        this.getList()
307
       }, handleCurrentChange(val) {
304
       }, handleCurrentChange(val) {
308
-        this.page = val;
309
-        this.getList();
310
-      },getList(){
305
+        this.page = val
306
+        this.getList()
307
+      }, getList() {
311
         let params = {
308
         let params = {
312
-          'page':this.page,
313
-          'limit':this.limit
309
+          'page': this.page,
310
+          'limit': this.limit
314
         }
311
         }
315
         this.loading = true
312
         this.loading = true
316
         getManufacturerList(params).then(response => {
313
         getManufacturerList(params).then(response => {
317
           if (response.data.state == 0) {
314
           if (response.data.state == 0) {
318
             this.loading = false
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
           } else {
318
           } else {
322
             this.loading = false
319
             this.loading = false
323
             this.total = response.data.data.total
320
             this.total = response.data.data.total
326
               this.manufacturerData.push(response.data.data.manufacturer[i])
323
               this.manufacturerData.push(response.data.data.manufacturer[i])
327
             }
324
             }
328
           }
325
           }
329
-        });
326
+        })
330
 
327
 
331
       }
328
       }
332
     },
329
     },
334
       this.getList()
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 View File

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

+ 2 - 1
src/xt_pages/stock/salesReturnEdit.vue View File

184
               tempForm['good_type_id'] = val.goodTypeId
184
               tempForm['good_type_id'] = val.goodTypeId
185
               tempForm['good_id'] = val.selectedGoodInfo[i].id
185
               tempForm['good_id'] = val.selectedGoodInfo[i].id
186
               tempForm['count'] = ''
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 View File

22
 
22
 
23
 
23
 
24
       <div class="cell clearfix">
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
         <el-select v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer()">
27
         <el-select v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer()">
27
           <el-option
28
           <el-option
28
             v-for="(option, index) in manufacturer"
29
             v-for="(option, index) in manufacturer"
203
               tempForm['good_id'] = val.selectedGoodInfo[i].id
204
               tempForm['good_id'] = val.selectedGoodInfo[i].id
204
               tempForm['return_count'] = ''
205
               tempForm['return_count'] = ''
205
               tempForm['price'] = ''
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 View File

22
       </div>
22
       </div>
23
 
23
 
24
       <div class="cell clearfix">
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
         <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" @change="changeManufacturer()" >
27
         <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" @change="changeManufacturer()" >
27
           <el-option
28
           <el-option
28
             v-for="(option, index) in manufacturer"
29
             v-for="(option, index) in manufacturer"
356
               tempForm['remark'] = ''
357
               tempForm['remark'] = ''
357
               tempForm['dealer'] = ''
358
               tempForm['dealer'] = ''
358
               tempForm['manufacturer'] = ''
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 View File

79
           </template>
79
           </template>
80
         </el-table-column>
80
         </el-table-column>
81
         <el-table-column label="生产日期" min-width="40" align="center">
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
             {{scope.row.product_date | parseTime('{y}-{m}-{d}')}}
83
             {{scope.row.product_date | parseTime('{y}-{m}-{d}')}}
84
-
85
           </template>
84
           </template>
86
         </el-table-column>
85
         </el-table-column>
87
         <el-table-column label="有效日期" min-width="40" align="center">
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
             {{ scope.row.expiry_date | parseTime('{y}-{m}-{d}')}}
88
             {{ scope.row.expiry_date | parseTime('{y}-{m}-{d}')}}
90
           </template>
89
           </template>
91
         </el-table-column>
90
         </el-table-column>

+ 2 - 1
src/xt_pages/stock/stockInOrderEdit.vue View File

278
               tempForm['remark'] = ''
278
               tempForm['remark'] = ''
279
               tempForm['dealer'] = ''
279
               tempForm['dealer'] = ''
280
               tempForm['manufacturer'] = ''
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 View File

25
 
25
 
26
 
26
 
27
     <div class="cell clearfix">
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
       <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商"  @change="changeManufacturer()">
30
       <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商"  @change="changeManufacturer()">
30
         <el-option
31
         <el-option
31
           v-for="(option, index) in manufacturer"
32
           v-for="(option, index) in manufacturer"
223
               tempForm['count'] = ''
224
               tempForm['count'] = ''
224
               tempForm['price'] = ''
225
               tempForm['price'] = ''
225
               tempForm['remark'] = ''
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 View File

207
               tempForm['count'] = ''
207
               tempForm['count'] = ''
208
               tempForm['price'] = ''
208
               tempForm['price'] = ''
209
               tempForm['remark'] = ''
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 View File

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