Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
160e170cff

+ 2 - 2
config/dev.env.js View File

7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
9
   //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
9
   //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  BASE_API: '"http://localhost:9529"',
10
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  // BASE_API: '"http://localhost:9529"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 8 - 0
src/api/supply.js View File

199
     params: params
199
     params: params
200
   })
200
   })
201
 }
201
 }
202
+
203
+export function getSupplyWarehouseOutById(id, params) {
204
+  return request({
205
+    url: '/api/supply/getsupplywarehouseoutbyid?id=' + id,
206
+    method: 'get',
207
+    params: params
208
+  })
209
+}

+ 4 - 4
src/views/layout/Layout.vue View File

16
           <i class="iconfont icon-computer_fill navIcon"></i>
16
           <i class="iconfont icon-computer_fill navIcon"></i>
17
           <p>透析管理</p>
17
           <p>透析管理</p>
18
         </div>
18
         </div>
19
-<!--        <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">-->
20
-<!--          <i class="iconfont icon-kccx navIcon"></i>-->
21
-<!--          <p>采购管理</p>-->
22
-<!--        </div>-->
19
+        <!-- <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
20
+         <i class="iconfont icon-kccx navIcon"></i>
21
+          <p>采购管理</p>
22
+        </div> -->
23
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
23
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
24
           <i class="iconfont icon-kccx navIcon"></i>
24
           <i class="iconfont icon-kccx navIcon"></i>
25
           <p>库房管理</p>
25
           <p>库房管理</p>

+ 8 - 7
src/xt_pages/data/components/addDrugs.vue View File

354
                             </el-date-picker>
354
                             </el-date-picker>
355
                         </el-form-item>
355
                         </el-form-item>
356
                       
356
                       
357
-                        <!-- <el-form-item label="是否零用:">
357
+                        <el-form-item label="是否零用:">
358
 
358
 
359
                             <el-select v-model="form.is_user" style="width:160px" filterable placeholder="请选择">
359
                             <el-select v-model="form.is_user" style="width:160px" filterable placeholder="请选择">
360
                                 <el-option
360
                                 <el-option
364
                                         :value="item.id">
364
                                         :value="item.id">
365
                                 </el-option>
365
                                 </el-option>
366
                             </el-select>
366
                             </el-select>
367
-                        </el-form-item> -->
367
+                        </el-form-item>
368
                       
368
                       
369
 
369
 
370
                         <el-form-item label="药品备注:">
370
                         <el-form-item label="药品备注:">
595
           prescribing_number_unit:"",
595
           prescribing_number_unit:"",
596
           total:"",
596
           total:"",
597
           specification_name:"",
597
           specification_name:"",
598
-          is_user:2,
598
+          is_user:"2",
599
         },
599
         },
600
 
600
 
601
         rules: {
601
         rules: {
648
         minNumberShow:false,
648
         minNumberShow:false,
649
         packingUnit:[],
649
         packingUnit:[],
650
         userList: [{
650
         userList: [{
651
-          id: '1',
652
-          name: '是'
651
+          id: "1",
652
+          name: "是"
653
         }, {
653
         }, {
654
-          id: '2',
655
-          name: '否'
654
+          id: "2",
655
+          name: "否"
656
         }],
656
         }],
657
       }
657
       }
658
     },
658
     },
781
           }
781
           }
782
 
782
 
783
           this.form['lmt_used_flag'] = 0
783
           this.form['lmt_used_flag'] = 0
784
+          this.form['is_user'] = "2"
784
 
785
 
785
         } else {
786
         } else {
786
           for (let key in obj) {
787
           for (let key in obj) {

+ 33 - 36
src/xt_pages/supply/components/addGoodOrder.vue View File

7
     <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
7
     <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
8
     <div>
8
     <div>
9
         <span style="color:red">*</span><span>供应商:</span>
9
         <span style="color:red">*</span><span>供应商:</span>
10
-        <el-select v-model="supplier_name" style="width:140px;margin-right:10px;" placeholder="请选择"
11
-        @change="changeTypeName">
10
+        <el-select v-model="supplier_name" style="width:140px;margin-right:10px;" placeholder="请选择">
12
         <el-option
11
         <el-option
13
             v-for="item in supplyList"
12
             v-for="item in supplyList"
14
             :key="item.id"
13
             :key="item.id"
28
         align="right"
27
         align="right"
29
         format="yyyy-MM-dd"
28
         format="yyyy-MM-dd"
30
         value-format="yyyy-MM-dd"
29
         value-format="yyyy-MM-dd"
31
-        @change="startTimeChange"
32
         ></el-date-picker>
30
         ></el-date-picker>
33
         <!-- <span>交货日期:</span> -->
31
         <!-- <span>交货日期:</span> -->
34
         <!-- <el-date-picker
32
         <!-- <el-date-picker
75
         </template>
73
         </template>
76
         <template slot-scope="scope">
74
         <template slot-scope="scope">
77
            <el-form-item :prop="'tableList.' + scope.$index + '.name'" :rules='tableRules.name'>
75
            <el-form-item :prop="'tableList.' + scope.$index + '.name'" :rules='tableRules.name'>
78
-            <el-select v-model="scope.row.name" style="width:160px;" filterable placeholder="请选择" @change="changeName"   @input="changeGoodName(scope.$index)" :disabled="disabled">
76
+            <el-select v-model="scope.row.name" style="width:160px;" filterable placeholder="请选择商品" @change="changeName"   @input="changeGoodName(scope.$index)" :disabled="disabled">
79
                 <el-option
77
                 <el-option
80
                     v-for="(item,index) in tabList"
78
                     v-for="(item,index) in tabList"
81
                     :key="index"
79
                     :key="index"
91
             <span>商品类别</span>
89
             <span>商品类别</span>
92
         </template>
90
         </template>
93
         <template slot-scope="scope">
91
         <template slot-scope="scope">
94
-            <el-input v-model="scope.row.supply_type" style="width:120px" :disabled="true"></el-input>
92
+            <el-input v-model="scope.row.supply_type" style="width:120px" :disabled="true"  placeholder="商品类别"></el-input>
95
             <div style="visibility: hidden">/</div>
93
             <div style="visibility: hidden">/</div>
96
         </template>
94
         </template>
97
     </el-table-column>
95
     </el-table-column>
98
-    <el-table-column label="规格&单位" align="center" width="120px">
96
+    <el-table-column label="规格&单位" align="center" width="150px">
99
         <template slot-scope="scope">
97
         <template slot-scope="scope">
100
-            <el-input v-model="scope.row.supply_specification_name" style="width:100px" :disabled="true"></el-input>
98
+            <el-input v-model="scope.row.supply_specification_name" style="width:120px" :disabled="true" placeholder="规格&单位"></el-input>
101
             <div style="visibility: hidden">/</div>
99
             <div style="visibility: hidden">/</div>
102
         </template>
100
         </template>
103
     </el-table-column>
101
     </el-table-column>
118
           </el-form-item>  
116
           </el-form-item>  
119
         </template>
117
         </template>
120
     </el-table-column>
118
     </el-table-column>
121
-    <el-table-column label="批号" align="center" width="130px">
119
+    <el-table-column label="批号" align="center" width="200px">
122
          <template slot="header" slot-scope="scope">
120
          <template slot="header" slot-scope="scope">
123
             <span>批号<span style="color: red">*</span></span>
121
             <span>批号<span style="color: red">*</span></span>
124
         </template>
122
         </template>
125
         <template slot-scope="scope">
123
         <template slot-scope="scope">
126
            <el-form-item  :prop="'tableList.' + scope.$index + '.supply_batch_number'" :rules='tableRules.supply_batch_number'>
124
            <el-form-item  :prop="'tableList.' + scope.$index + '.supply_batch_number'" :rules='tableRules.supply_batch_number'>
127
-             <el-input v-model="scope.row.supply_batch_number" style="width:80px" :disabled="disabled"></el-input>
125
+             <el-input v-model="scope.row.supply_batch_number" style="width:180px" :disabled="disabled" placeholder="请输入批号"></el-input>
128
           </el-form-item>
126
           </el-form-item>
129
         </template>
127
         </template>
130
     </el-table-column>
128
     </el-table-column>
142
              </el-form-item>
140
              </el-form-item>
143
        </template>
141
        </template>
144
     </el-table-column>
142
     </el-table-column>
145
-    <el-table-column label="可用库存" align="center" width="100px">
143
+    <el-table-column label="可用库存" align="center" width="150px">
146
         <template slot-scope="scope">
144
         <template slot-scope="scope">
147
-            <el-input v-model="scope.row.supply_total" style="width:80px" :disabled="true"></el-input>
145
+            <el-input v-model="scope.row.supply_total" style="width:100px" :disabled="true"></el-input>
148
             <div style="visibility: hidden">/</div>
146
             <div style="visibility: hidden">/</div>
149
         </template>
147
         </template>
150
     </el-table-column>
148
     </el-table-column>
151
-    <el-table-column label="数量" align="center" width="120px">
149
+    <el-table-column label="数量" align="center" width="140px">
152
         <template slot="header" slot-scope="scope">
150
         <template slot="header" slot-scope="scope">
153
             <span>数量<span style="color: red">*</span></span>
151
             <span>数量<span style="color: red">*</span></span>
154
         </template>
152
         </template>
155
         <template slot-scope="scope">
153
         <template slot-scope="scope">
156
           <el-form-item  :prop="'tableList.' + scope.$index + '.supply_count'" :rules='tableRules.supply_count'>
154
           <el-form-item  :prop="'tableList.' + scope.$index + '.supply_count'" :rules='tableRules.supply_count'>
157
-             <el-input v-model="scope.row.supply_count" style="width:80px" :disabled="disabled"></el-input>
155
+             <el-input v-model="scope.row.supply_count" style="width:100px" :disabled="disabled" placeholder="请输入数量"></el-input>
158
           </el-form-item>
156
           </el-form-item>
159
         </template>
157
         </template>
160
     </el-table-column>
158
     </el-table-column>
161
 
159
 
162
-    <el-table-column label="采购单价" align="center" width="120px">
160
+    <el-table-column label="采购单价" align="center" width="180px">
163
         <template slot-scope="scope">
161
         <template slot-scope="scope">
164
-        <el-input v-model="scope.row.supply_price" style="width:80px" :disabled="disabled"></el-input>
162
+        <el-input v-model="scope.row.supply_price" style="width:140px" :disabled="disabled"  placeholder="请输入采购单价"></el-input>
165
         <div style="visibility: hidden">/</div>
163
         <div style="visibility: hidden">/</div>
166
         </template>
164
         </template>
167
     </el-table-column>
165
     </el-table-column>
216
 
214
 
217
     <el-table-column label="备注" align="center" width="200px">
215
     <el-table-column label="备注" align="center" width="200px">
218
         <template slot-scope="scope">
216
         <template slot-scope="scope">
219
-        <el-input v-model="scope.row.supply_remake" style="width:160px" :disabled="disabled"></el-input>
217
+        <el-input v-model="scope.row.supply_remake" style="width:160px" :disabled="disabled" placeholder="请输入备注"></el-input>
220
         <div style="visibility: hidden">/</div>
218
         <div style="visibility: hidden">/</div>
221
         </template>
219
         </template>
222
     </el-table-column>
220
     </el-table-column>
243
         </template>
241
         </template>
244
     </el-table-column>
242
     </el-table-column>
245
   </el-table>
243
   </el-table>
244
+   <div style="margin-top: 10px">
245
+        <el-input
246
+          type="textarea"
247
+          :rows="2"
248
+          placeholder="备注信息"
249
+          v-model="return_remark"
250
+        >
251
+        </el-input>
252
+   </div>
246
 </el-form>
253
 </el-form>
247
    <div style="margin-top:10px">
254
    <div style="margin-top:10px">
248
       合计:{{getAllPrice()}} 元
255
       合计:{{getAllPrice()}} 元
249
    </div>
256
    </div>
250
    <div style="margin-top:10px">
257
    <div style="margin-top:10px">
251
-        <span>优惠率:<el-input style="width:100px" v-model="rate_of_concession"></el-input>%</span>
258
+        <span>优惠率:<el-input style="width:150px" v-model="rate_of_concession" placeholder="请输入优惠率"></el-input>%</span>
252
 
259
 
253
-        <span>优惠金额:<el-input style="width:100px" v-model="discount_amount"></el-input></span>
260
+        <span>优惠金额:<el-input style="width:150px" v-model="discount_amount" placeholder="请输入优惠金额"></el-input></span>
254
       
261
       
255
-        <span>本次付款:<el-input style="width:100px" v-model="payment"></el-input></span>
262
+        <span>本次付款:<el-input style="width:150px" v-model="payment" placeholder="请输入本次付款"></el-input></span>
256
 
263
 
257
-        <span>本次欠款:<el-input style="width:100px" v-model="arrearage"></el-input></span>
264
+        <span>本次欠款:<el-input style="width:150px" v-model="arrearage" placeholder="请输入本次欠款"></el-input></span>
258
     </div>
265
     </div>
259
 </div>
266
 </div>
260
 
267
 
342
    showOne:true,
349
    showOne:true,
343
    showTwo:false,
350
    showTwo:false,
344
    warese_out_id:0,
351
    warese_out_id:0,
352
+   return_remark:"",
345
   };
353
   };
346
 },
354
 },
347
 methods:{
355
 methods:{
503
         this.recordInfo.tableList.splice(index, 1)
511
         this.recordInfo.tableList.splice(index, 1)
504
    }
512
    }
505
 },
513
 },
506
-
507
-changeTypeName(){
508
-
509
-},
510
-startTimeChange(){
511
-
512
-},
513
-endTimeChange(){
514
-
515
-},
516
-search(){
517
-
518
-},
519
-
520
 getWarehoseInfo(arr,max_unit,min_unit,min_number){
514
 getWarehoseInfo(arr,max_unit,min_unit,min_number){
521
     var total = 0
515
     var total = 0
522
     var max_str=  ""
516
     var max_str=  ""
690
            this.loading = true
684
            this.loading = true
691
            var warehousing_id = this.$route.query.id
685
            var warehousing_id = this.$route.query.id
692
            var params = {
686
            var params = {
693
-             "stockIn":this.recordInfo.tableList,
687
+             stockIn:this.recordInfo.tableList,
688
+             return_remake:this.return_remark,
694
            }
689
            }
695
         console.log("stockIN2323322332322323",params)  
690
         console.log("stockIN2323322332322323",params)  
696
        
691
        
709
              this.payment =warehouseOut.payment
704
              this.payment =warehouseOut.payment
710
              this.arrearage =warehouseOut.arrearage
705
              this.arrearage =warehouseOut.arrearage
711
              this.supplier_name = warehouseOut.supplier_id
706
              this.supplier_name = warehouseOut.supplier_id
707
+             this.return_remake = warehouseOut.return_remake
712
              this.start_time = this.getTimes(warehouseOut.document_date)
708
              this.start_time = this.getTimes(warehouseOut.document_date)
713
             for(let i=0;i< orderInfo.length;i++){
709
             for(let i=0;i< orderInfo.length;i++){
714
               orderInfo[i].supply_count =  orderInfo[i].count
710
               orderInfo[i].supply_count =  orderInfo[i].count
783
            this.loading = true
779
            this.loading = true
784
            var warehose_out_id = this.$route.query.id
780
            var warehose_out_id = this.$route.query.id
785
            var params = {
781
            var params = {
786
-             "stockIn":this.recordInfo.tableList,
782
+             stockIn:this.recordInfo.tableList,
783
+             return_remake:this.return_remake,
787
            } 
784
            } 
788
            console.log("sotckind23232232323232323232",params)
785
            console.log("sotckind23232232323232323232",params)
789
            
786
            

+ 9 - 4
src/xt_pages/supply/components/addGoodReturn.vue View File

96
                   v-model="scope.row.name"
96
                   v-model="scope.row.name"
97
                   style="width: 160px"
97
                   style="width: 160px"
98
                   filterable
98
                   filterable
99
-                  placeholder="请选择"
99
+                  placeholder="请选择商品"
100
                   @change="changeName"
100
                   @change="changeName"
101
                   @input="changeGoodName(scope.$index)"
101
                   @input="changeGoodName(scope.$index)"
102
                   :disabled="disabled"
102
                   :disabled="disabled"
121
                 v-model="scope.row.supply_type"
121
                 v-model="scope.row.supply_type"
122
                 style="width: 120px"
122
                 style="width: 120px"
123
                 :disabled="true"
123
                 :disabled="true"
124
+                placeholder="商品类别"
124
               ></el-input>
125
               ></el-input>
125
             </template>
126
             </template>
126
           </el-table-column>
127
           </el-table-column>
130
                 v-model="scope.row.supply_specification_name"
131
                 v-model="scope.row.supply_specification_name"
131
                 style="width: 150px"
132
                 style="width: 150px"
132
                 :disabled="true"
133
                 :disabled="true"
134
+                 placeholder="规格&单位"
133
               ></el-input>
135
               ></el-input>
134
             </template>
136
             </template>
135
           </el-table-column>
137
           </el-table-column>
166
                 v-model="scope.row.supply_specification_name"
168
                 v-model="scope.row.supply_specification_name"
167
                 style="width: 150px"
169
                 style="width: 150px"
168
                 :disabled="true"
170
                 :disabled="true"
171
+                placeholder="可退数量"
169
               ></el-input>
172
               ></el-input>
170
             </template>
173
             </template>
171
           </el-table-column>
174
           </el-table-column>
187
             </template>
190
             </template>
188
           </el-table-column>
191
           </el-table-column>
189
 
192
 
190
-          <el-table-column label="购货单价" align="center" width="120px">
193
+          <el-table-column label="采购单价" align="center" width="180px">
191
             <template slot-scope="scope">
194
             <template slot-scope="scope">
192
               <el-input
195
               <el-input
193
                 v-model="scope.row.supply_price"
196
                 v-model="scope.row.supply_price"
194
-                style="width: 80px"
197
+                style="width: 140px"
195
                 :disabled="disabled"
198
                 :disabled="disabled"
199
+                 placeholder="请输入采购单价"
196
               ></el-input>
200
               ></el-input>
197
             </template>
201
             </template>
198
           </el-table-column>
202
           </el-table-column>
199
 
203
 
200
-          <el-table-column label="购金额" align="center" width="120px">
204
+          <el-table-column label="购金额" align="center" width="120px">
201
             <template slot-scope="scope">
205
             <template slot-scope="scope">
202
               {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
206
               {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
203
             </template>
207
             </template>
250
                 v-model="scope.row.supply_remake"
254
                 v-model="scope.row.supply_remake"
251
                 style="width: 160px"
255
                 style="width: 160px"
252
                 :disabled="disabled"
256
                 :disabled="disabled"
257
+                placeholder="请输入备注"
253
               ></el-input>
258
               ></el-input>
254
             </template>
259
             </template>
255
           </el-table-column>
260
           </el-table-column>

+ 25 - 25
src/xt_pages/supply/components/addPurchaseOrder.vue View File

191
               <div style="visibility: hidden">/</div>
191
               <div style="visibility: hidden">/</div>
192
             </template>
192
             </template>
193
           </el-table-column>
193
           </el-table-column>
194
-          <el-table-column label="数量" align="center" width="120px">
194
+          <el-table-column label="数量" align="center" width="140px">
195
             <template slot="header" slot-scope="scope">
195
             <template slot="header" slot-scope="scope">
196
               <span>数量<span style="color: red">*</span></span>
196
               <span>数量<span style="color: red">*</span></span>
197
             </template>
197
             </template>
199
               <el-form-item
199
               <el-form-item
200
                 :prop="'tableList.' + scope.$index + '.supply_count'"
200
                 :prop="'tableList.' + scope.$index + '.supply_count'"
201
                 :rules="tableRules.supply_count"
201
                 :rules="tableRules.supply_count"
202
-                 placeholder="请输入数量"
203
               >
202
               >
204
                 <el-input
203
                 <el-input
205
                   v-model="scope.row.supply_count"
204
                   v-model="scope.row.supply_count"
206
-                  style="width: 80px"
205
+                  style="width: 100px"
207
                   :disabled="disabled"
206
                   :disabled="disabled"
207
+                  placeholder="请输入数量"
208
                 ></el-input>
208
                 ></el-input>
209
               </el-form-item>
209
               </el-form-item>
210
             </template>
210
             </template>
211
           </el-table-column>
211
           </el-table-column>
212
 
212
 
213
-          <el-table-column label="购货单价" align="center" width="140px">
213
+          <el-table-column label="采购单价" align="center" width="180px">
214
             <template slot-scope="scope">
214
             <template slot-scope="scope">
215
               <el-input
215
               <el-input
216
                 v-model="scope.row.supply_price"
216
                 v-model="scope.row.supply_price"
217
-                style="width: 80px"
217
+                style="width: 140px"
218
                 :disabled="disabled"
218
                 :disabled="disabled"
219
                  placeholder="请输入购货单价"
219
                  placeholder="请输入购货单价"
220
               ></el-input>
220
               ></el-input>
309
             </template>
309
             </template>
310
           </el-table-column>
310
           </el-table-column>
311
         </el-table>
311
         </el-table>
312
+        <div style="margin-top: 10px">
313
+        <el-input
314
+          type="textarea"
315
+          :rows="2"
316
+          placeholder="备注信息"
317
+          v-model="return_remark"
318
+        >
319
+        </el-input>
320
+       </div>
312
         <!-- 审核水印 -->
321
         <!-- 审核水印 -->
313
         <img src="@/assets/purchase/Reviewed.png" alt="正在加载..." class="reviewImg" v-show="Reviewed == true" />
322
         <img src="@/assets/purchase/Reviewed.png" alt="正在加载..." class="reviewImg" v-show="Reviewed == true" />
314
 
323
 
317
       <div style="margin-top: 10px">
326
       <div style="margin-top: 10px">
318
         <span
327
         <span
319
           >优惠率:<el-input
328
           >优惠率:<el-input
320
-            style="width: 100px"
329
+            style="width: 150px"
321
             v-model="rate_of_concession"
330
             v-model="rate_of_concession"
322
             @input="addressChange"
331
             @input="addressChange"
323
-            @placeholder="请输入优惠率"
332
+            placeholder="请输入优惠率"
324
           ></el-input
333
           ></el-input
325
           >%</span
334
           >%</span
326
         >
335
         >
327
 
336
 
328
         <span
337
         <span
329
           >优惠金额:<el-input
338
           >优惠金额:<el-input
330
-            style="width: 100px"
339
+            style="width: 150px"
331
             v-model="discount_amount"
340
             v-model="discount_amount"
332
-            @placeholder="请输入优惠金额"
341
+            placeholder="请输入优惠金额"
333
           ></el-input
342
           ></el-input
334
         ></span>
343
         ></span>
335
       </div>
344
       </div>
351
 import { getDataConfig } from "@/utils/data";
360
 import { getDataConfig } from "@/utils/data";
352
 export default {
361
 export default {
353
   name: "addPurchaseOrder",
362
   name: "addPurchaseOrder",
354
-  created() {
355
-    this.org_id = this.$store.getters.xt_user.org_id;
356
-
357
-    var start_time = window.sessionStorage.getItem("start_time");
358
-    var end_time = window.sessionStorage.getItem("end_time");
359
-
360
-    if (start_time != null) {
361
-      this.start_time = start_time;
362
-    }
363
-    if (end_time != null) {
364
-      this.end_time = end_time;
365
-    }
366
-    window.sessionStorage.removeItem("start_time");
367
-    window.sessionStorage.removeItem("end_time");
368
-  },
369
   components: {
363
   components: {
370
     BreadCrumb,
364
     BreadCrumb,
371
   },
365
   },
430
       ],
424
       ],
431
       goodList: [{ id: 1, name: "" }],
425
       goodList: [{ id: 1, name: "" }],
432
       total_price: 0,
426
       total_price: 0,
427
+      return_remark:"",
433
     };
428
     };
434
   },
429
   },
435
   methods: {
430
   methods: {
659
           var end = this.getTimes(this.end_time);
654
           var end = this.getTimes(this.end_time);
660
           const params = {
655
           const params = {
661
             stockIn: this.recordInfo.tableList,
656
             stockIn: this.recordInfo.tableList,
657
+            return_remake:this.return_remark,
662
           };
658
           };
663
-
659
+          
664
           console.log("params23322323", params);
660
           console.log("params23322323", params);
661
+          
665
           savePurchaseOrder(
662
           savePurchaseOrder(
666
             params,
663
             params,
667
             this.supplier_name,
664
             this.supplier_name,
675
               this.loading = false;
672
               this.loading = false;
676
               this.$message.success("保存成功!");
673
               this.$message.success("保存成功!");
677
               var warehouseInfo = response.data.data.warehouseInfo;
674
               var warehouseInfo = response.data.data.warehouseInfo;
675
+            
678
               if(warehouseInfo.is_check == 1){
676
               if(warehouseInfo.is_check == 1){
679
                 this.Reviewed = true
677
                 this.Reviewed = true
680
               }
678
               }
681
               this.number = warehouseInfo.number;
679
               this.number = warehouseInfo.number;
680
+              this.return_remark = warehouseInfo.return_remake
682
               this.id = warehouseInfo.id;
681
               this.id = warehouseInfo.id;
683
               this.recordInfo.tableList = [];
682
               this.recordInfo.tableList = [];
684
               var orderInfo = response.data.data.orderInfo;
683
               var orderInfo = response.data.data.orderInfo;
824
           var end = this.getTimes(this.end_time);
823
           var end = this.getTimes(this.end_time);
825
           const params = {
824
           const params = {
826
             stockIn: this.recordInfo.tableList,
825
             stockIn: this.recordInfo.tableList,
826
+            return_remake:this.return_remake,
827
           };
827
           };
828
           console.log("params23232233223", params);
828
           console.log("params23232233223", params);
829
 
829
 

+ 50 - 29
src/xt_pages/supply/components/editGoodOrder.vue View File

91
             <span>商品类别</span>
91
             <span>商品类别</span>
92
         </template>
92
         </template>
93
         <template slot-scope="scope">
93
         <template slot-scope="scope">
94
-            <el-input v-model="scope.row.supply_type" style="width:120px" :disabled="true"></el-input>
94
+            <el-input v-model="scope.row.supply_type" style="width:120px" :disabled="true" placeholder="商品类别"></el-input>
95
             <div style="visibility: hidden">/</div>
95
             <div style="visibility: hidden">/</div>
96
         </template>
96
         </template>
97
     </el-table-column>
97
     </el-table-column>
98
-    <el-table-column label="规格&单位" align="center" width="120px">
98
+    <el-table-column label="规格&单位" align="center" width="150px">
99
         <template slot-scope="scope">
99
         <template slot-scope="scope">
100
-            <el-input v-model="scope.row.supply_specification_name" style="width:100px" :disabled="true"></el-input>
100
+            <el-input v-model="scope.row.supply_specification_name" style="width:120px" :disabled="true" placeholder="规格&单位"></el-input>
101
             <div style="visibility: hidden">/</div>
101
             <div style="visibility: hidden">/</div>
102
         </template>
102
         </template>
103
     </el-table-column>
103
     </el-table-column>
118
           </el-form-item>  
118
           </el-form-item>  
119
         </template>
119
         </template>
120
     </el-table-column>
120
     </el-table-column>
121
-    <el-table-column label="批号" align="center" width="130px">
121
+    <el-table-column label="批号" align="center" width="200px">
122
          <template slot="header" slot-scope="scope">
122
          <template slot="header" slot-scope="scope">
123
             <span>批号<span style="color: red">*</span></span>
123
             <span>批号<span style="color: red">*</span></span>
124
         </template>
124
         </template>
125
         <template slot-scope="scope">
125
         <template slot-scope="scope">
126
            <el-form-item  :prop="'tableList.' + scope.$index + '.supply_batch_number'" :rules='tableRules.supply_batch_number'>
126
            <el-form-item  :prop="'tableList.' + scope.$index + '.supply_batch_number'" :rules='tableRules.supply_batch_number'>
127
-             <el-input v-model="scope.row.supply_batch_number" style="width:80px" :disabled="disabled"></el-input>
127
+             <el-input v-model="scope.row.supply_batch_number" style="width:180px" :disabled="disabled" placeholder="请输入批号"></el-input>
128
           </el-form-item>
128
           </el-form-item>
129
         </template>
129
         </template>
130
     </el-table-column>
130
     </el-table-column>
142
              </el-form-item>
142
              </el-form-item>
143
        </template>
143
        </template>
144
     </el-table-column>
144
     </el-table-column>
145
-    <el-table-column label="可用库存" align="center" width="100px">
145
+    <el-table-column label="可用库存" align="center" width="150px">
146
         <template slot-scope="scope">
146
         <template slot-scope="scope">
147
-            <el-input v-model="scope.row.supply_total" style="width:80px" :disabled="true"></el-input>
147
+            <el-input v-model="scope.row.supply_total" style="width:100px" :disabled="true"></el-input>
148
             <div style="visibility: hidden">/</div>
148
             <div style="visibility: hidden">/</div>
149
         </template>
149
         </template>
150
     </el-table-column>
150
     </el-table-column>
154
         </template>
154
         </template>
155
         <template slot-scope="scope">
155
         <template slot-scope="scope">
156
           <el-form-item  :prop="'tableList.' + scope.$index + '.supply_count'" :rules='tableRules.supply_count'>
156
           <el-form-item  :prop="'tableList.' + scope.$index + '.supply_count'" :rules='tableRules.supply_count'>
157
-             <el-input v-model="scope.row.supply_count" style="width:80px" :disabled="disabled"></el-input>
157
+             <el-input v-model="scope.row.supply_count" style="width:80px" :disabled="disabled" placeholder="请输入数量"></el-input>
158
           </el-form-item>
158
           </el-form-item>
159
         </template>
159
         </template>
160
     </el-table-column>
160
     </el-table-column>
161
 
161
 
162
-    <el-table-column label="采购单价" align="center" width="120px">
162
+    <el-table-column label="采购单价" align="center" width="180px">
163
         <template slot-scope="scope">
163
         <template slot-scope="scope">
164
-        <el-input v-model="scope.row.supply_price" style="width:80px" :disabled="disabled"></el-input>
164
+        <el-input v-model="scope.row.supply_price" style="width:140px" :disabled="disabled" placeholder="请输入采购单价"></el-input>
165
         <div style="visibility: hidden">/</div>
165
         <div style="visibility: hidden">/</div>
166
         </template>
166
         </template>
167
     </el-table-column>
167
     </el-table-column>
216
 
216
 
217
     <el-table-column label="备注" align="center" width="200px">
217
     <el-table-column label="备注" align="center" width="200px">
218
         <template slot-scope="scope">
218
         <template slot-scope="scope">
219
-        <el-input v-model="scope.row.supply_remake" style="width:160px" :disabled="disabled"></el-input>
219
+        <el-input v-model="scope.row.supply_remake" style="width:160px" :disabled="disabled" placeholder="请输入备注"></el-input>
220
         <div style="visibility: hidden">/</div>
220
         <div style="visibility: hidden">/</div>
221
         </template>
221
         </template>
222
     </el-table-column>
222
     </el-table-column>
243
         </template>
243
         </template>
244
     </el-table-column>
244
     </el-table-column>
245
   </el-table>
245
   </el-table>
246
+   <div style="margin-top: 10px">
247
+      <el-input
248
+        type="textarea"
249
+        :rows="2"
250
+        placeholder="备注信息"
251
+        v-model="return_remark"
252
+      >
253
+      </el-input>
254
+  </div>
246
 </el-form>
255
 </el-form>
247
    <div style="margin-top:10px">
256
    <div style="margin-top:10px">
248
       合计:{{getAllPrice()}} 元
257
       合计:{{getAllPrice()}} 元
249
    </div>
258
    </div>
250
    <div style="margin-top:10px">
259
    <div style="margin-top:10px">
251
-        <span>优惠率:<el-input style="width:100px" v-model="rate_of_concession"></el-input>%</span>
260
+        <span>优惠率:<el-input style="width:150px" v-model="rate_of_concession" placeholder="请输入优惠率"></el-input>%</span>
252
 
261
 
253
-        <span>优惠金额:<el-input style="width:100px" v-model="discount_amount"></el-input></span>
262
+        <span>优惠金额:<el-input style="width:150px" v-model="discount_amount" placeholder="请输入优惠金额"></el-input></span>
254
       
263
       
255
-        <span>本次付款:<el-input style="width:100px" v-model="payment"></el-input></span>
264
+        <span>本次付款:<el-input style="width:150px" v-model="payment" placeholder="请输入本次付款"></el-input></span>
256
 
265
 
257
-        <span>本次欠款:<el-input style="width:100px" v-model="arrearage"></el-input></span>
266
+        <span>本次欠款:<el-input style="width:150px" v-model="arrearage" placeholder="请输入本次欠款"></el-input></span>
258
     </div>
267
     </div>
259
 </div>
268
 </div>
260
 
269
 
261
-  <!-- <el-dialog
262
-  title="提示"
263
-  :visible.sync="dialogVisible"
264
-  width="30%"
265
-  :before-close="handleClose">
266
-  <span>这是一段信息</span>
267
-  <span slot="footer" class="dialog-footer">
268
-    <el-button @click="dialogVisible = false">取 消</el-button>
269
-    <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
270
-  </span>
271
-  </el-dialog> -->
272
 </div>
270
 </div>
273
 </template>
271
 </template>
274
 
272
 
275
 <script>
273
 <script>
276
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
274
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
277
 import {uParseTime } from '@/utils/tools'
275
 import {uParseTime } from '@/utils/tools'
278
-import {getInitOrder,checkPurchaseOrder,getGoodOrderDetail,updateGoodOrder,getGoodOrderCountList,ModefySupplyWarehousing,MofyGoodOrder,UpdateSupplyWahouseingInfo} from "@/api/supply"
276
+import {getInitOrder,checkPurchaseOrder,getGoodOrderDetail,updateGoodOrder,getGoodOrderCountList,ModefySupplyWarehousing,MofyGoodOrder,UpdateSupplyWahouseingInfo,getSupplyWarehouseOutById} from "@/api/supply"
279
 export default {
277
 export default {
280
 name: "addPurchaseOrder",
278
 name: "addPurchaseOrder",
281
 components: {
279
 components: {
341
    good_number:"",
339
    good_number:"",
342
    orderInfo:[],
340
    orderInfo:[],
343
    warese_out_id:0,
341
    warese_out_id:0,
344
-   
342
+   return_remark:"",
345
   };
343
   };
346
 },
344
 },
347
 methods:{
345
 methods:{
610
         this.arrearage = out.arrearage
608
         this.arrearage = out.arrearage
611
         this.number = out.number
609
         this.number = out.number
612
         this.good_number = out.good_number
610
         this.good_number = out.good_number
611
+        this.return_remark = out.return_remake
613
         this.start_time = this.getTimes(out.document_date)
612
         this.start_time = this.getTimes(out.document_date)
614
         var orderInfo = response.data.data.list
613
         var orderInfo = response.data.data.list
615
         
614
         
693
            this.loading = true
692
            this.loading = true
694
            var warehose_out_id = this.$route.query.id
693
            var warehose_out_id = this.$route.query.id
695
            var params = {
694
            var params = {
696
-             "stockIn":this.recordInfo.tableList,
695
+             stockIn:this.recordInfo.tableList,
696
+             return_remake:this.return_remark,
697
            } 
697
            } 
698
            updateGoodOrder(params,this.supplier_name,start,this.arrearage,this.payment,warehose_out_id,this.number,this.rate_of_concession,this.discount_amount,this.good_number).then(response=>{
698
            updateGoodOrder(params,this.supplier_name,start,this.arrearage,this.payment,warehose_out_id,this.number,this.rate_of_concession,this.discount_amount,this.good_number).then(response=>{
699
            if(response.data.state == 1){
699
            if(response.data.state == 1){
817
     })
817
     })
818
   },
818
   },
819
   toClick(){
819
   toClick(){
820
+    //先判断采购单号有没有关联的采购退货单号,如果没有,则为首次生成采购退货单
821
+     if(this.is_check == 2){
822
+      this.$message.error("该采购单未审核,不能生成退货单数据!")
823
+      return false
824
+     }
825
+     var id = this.$route.query.id
826
+    getSupplyWarehouseOutById(id).then(response=>{
827
+      if(response.data.state == 1){
828
+        var cancelList = response.data.data.cancelList
829
+        console.log("cancelList23232232323323223",cancelList)
830
+        if(cancelList.length >0){
831
+
832
+        }
833
+        var outList = response.data.data.outList
834
+        console.log("outList2332232332",outList)
835
+        var cancelOrderList = response.data.data.cancelOrderList
836
+        console.log("cancelOrderList2323322322332",cancelOrderList)
837
+        var drugList = response.data.data.drugList
838
+        console.log("drugList233223232323232",drugList)
839
+      }
840
+    })
820
     this.$router.push({path:"/good/return/add?id="+this.id})
841
     this.$router.push({path:"/good/return/add?id="+this.id})
821
   },
842
   },
822
   //反审核
843
   //反审核

+ 10 - 4
src/xt_pages/supply/components/editGoodReturn.vue View File

92
                   v-model="scope.row.name"
92
                   v-model="scope.row.name"
93
                   style="width: 160px"
93
                   style="width: 160px"
94
                   filterable
94
                   filterable
95
-                  placeholder="请选择"
95
+                  placeholder="请选择商品"
96
                   @change="changeName"
96
                   @change="changeName"
97
                   @input="changeGoodName(scope.$index)"
97
                   @input="changeGoodName(scope.$index)"
98
                   :disabled="disabled"
98
                   :disabled="disabled"
117
                 v-model="scope.row.supply_type"
117
                 v-model="scope.row.supply_type"
118
                 style="width: 120px"
118
                 style="width: 120px"
119
                 :disabled="true"
119
                 :disabled="true"
120
+                placeholder="商品类别"
120
               ></el-input>
121
               ></el-input>
121
             </template>
122
             </template>
122
           </el-table-column>
123
           </el-table-column>
126
                 v-model="scope.row.supply_specification_name"
127
                 v-model="scope.row.supply_specification_name"
127
                 style="width: 150px"
128
                 style="width: 150px"
128
                 :disabled="true"
129
                 :disabled="true"
130
+                placeholder="规格&单位"
129
               ></el-input>
131
               ></el-input>
130
             </template>
132
             </template>
131
           </el-table-column>
133
           </el-table-column>
168
           <el-table-column label="数量" align="center" width="120px">
170
           <el-table-column label="数量" align="center" width="120px">
169
             <template slot="header" slot-scope="scope">
171
             <template slot="header" slot-scope="scope">
170
               <span>数量<span style="color: red">*</span></span>
172
               <span>数量<span style="color: red">*</span></span>
173
+
171
             </template>
174
             </template>
172
             <template slot-scope="scope">
175
             <template slot-scope="scope">
173
               <el-form-item
176
               <el-form-item
178
                   v-model="scope.row.supply_count"
181
                   v-model="scope.row.supply_count"
179
                   style="width: 80px"
182
                   style="width: 80px"
180
                   :disabled="disabled"
183
                   :disabled="disabled"
184
+                  placeholder="请输入数量"
181
                 ></el-input>
185
                 ></el-input>
182
               </el-form-item>
186
               </el-form-item>
183
             </template>
187
             </template>
184
           </el-table-column>
188
           </el-table-column>
185
 
189
 
186
-          <el-table-column label="购货单价" align="center" width="120px">
190
+          <el-table-column label="采购单价" align="center" width="180px">
187
             <template slot-scope="scope">
191
             <template slot-scope="scope">
188
               <el-input
192
               <el-input
189
                 v-model="scope.row.supply_price"
193
                 v-model="scope.row.supply_price"
190
-                style="width: 80px"
194
+                style="width: 140px"
191
                 :disabled="disabled"
195
                 :disabled="disabled"
196
+                placeholder="请输入采购单价"
192
               ></el-input>
197
               ></el-input>
193
             </template>
198
             </template>
194
           </el-table-column>
199
           </el-table-column>
195
 
200
 
196
-          <el-table-column label="购金额" align="center" width="120px">
201
+          <el-table-column label="购金额" align="center" width="120px">
197
             <template slot-scope="scope">
202
             <template slot-scope="scope">
198
               {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
203
               {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
199
             </template>
204
             </template>
246
                 v-model="scope.row.supply_remake"
251
                 v-model="scope.row.supply_remake"
247
                 style="width: 160px"
252
                 style="width: 160px"
248
                 :disabled="disabled"
253
                 :disabled="disabled"
254
+                placeholder="请输入备注"
249
               ></el-input>
255
               ></el-input>
250
             </template>
256
             </template>
251
           </el-table-column>
257
           </el-table-column>

+ 21 - 26
src/xt_pages/supply/components/editPurchaseOrder.vue View File

7
     <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
7
     <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
8
     <div>
8
     <div>
9
         <span style="color:red">*</span><span>供应商:</span>
9
         <span style="color:red">*</span><span>供应商:</span>
10
-        <el-select v-model="supplier_name" style="width:140px;margin-right:10px;" placeholder="请选择"
11
-        @change="changeTypeName" :disabled="disabled">
10
+        <el-select v-model="supplier_name" style="width:140px;margin-right:10px;" placeholder="请选择" :disabled="disabled">
12
         <el-option
11
         <el-option
13
             v-for="item in supplyList"
12
             v-for="item in supplyList"
14
             :key="item.id"
13
             :key="item.id"
28
         align="right"
27
         align="right"
29
         format="yyyy-MM-dd"
28
         format="yyyy-MM-dd"
30
         value-format="yyyy-MM-dd"
29
         value-format="yyyy-MM-dd"
31
-        @change="startTimeChange"
32
         :disabled="disabled"
30
         :disabled="disabled"
33
         ></el-date-picker>
31
         ></el-date-picker>
34
         <span>交货日期:</span>
32
         <span>交货日期:</span>
43
             align="right"
41
             align="right"
44
             format="yyyy-MM-dd"
42
             format="yyyy-MM-dd"
45
             value-format="yyyy-MM-dd"
43
             value-format="yyyy-MM-dd"
46
-            @change="endTimeChange"
47
             :disabled="disabled"
44
             :disabled="disabled"
48
         ></el-date-picker>
45
         ></el-date-picker>
49
         <span>单据编码:{{number}}</span>
46
         <span>单据编码:{{number}}</span>
126
             <el-input v-model="scope.row.supply_total" style="width:100px" :disabled="true"></el-input>
123
             <el-input v-model="scope.row.supply_total" style="width:100px" :disabled="true"></el-input>
127
         </template>
124
         </template>
128
     </el-table-column>
125
     </el-table-column>
129
-    <el-table-column label="数量" align="center" width="120px">
126
+    <el-table-column label="数量" align="center" width="180px">
130
         <template slot="header" slot-scope="scope">
127
         <template slot="header" slot-scope="scope">
131
             <span>数量<span style="color: red">*</span></span>
128
             <span>数量<span style="color: red">*</span></span>
132
         </template>
129
         </template>
133
         <template slot-scope="scope">
130
         <template slot-scope="scope">
134
           <el-form-item  :prop="'tableList.' + scope.$index + '.supply_count'" :rules='tableRules.supply_count'>
131
           <el-form-item  :prop="'tableList.' + scope.$index + '.supply_count'" :rules='tableRules.supply_count'>
135
-             <el-input v-model="scope.row.supply_count" style="width:80px" :disabled="disabled" placeholder="请输入数量"></el-input>
132
+             <el-input v-model="scope.row.supply_count" style="width:140px" :disabled="disabled" placeholder="请输入数量"></el-input>
136
           </el-form-item>
133
           </el-form-item>
137
         </template>
134
         </template>
138
     </el-table-column>
135
     </el-table-column>
139
 
136
 
140
     <el-table-column label="采购单价" align="center" width="120px">
137
     <el-table-column label="采购单价" align="center" width="120px">
141
         <template slot-scope="scope">
138
         <template slot-scope="scope">
142
-        <el-input v-model="scope.row.supply_price" style="width:80px" :disabled="disabled"></el-input>
139
+        <el-input v-model="scope.row.supply_price" style="width:80px" :disabled="disabled" placeholder="请输入采购单价"></el-input>
143
         </template>
140
         </template>
144
     </el-table-column>
141
     </el-table-column>
145
 
142
 
171
  
168
  
172
     <el-table-column label="备注" align="center" width="200px">
169
     <el-table-column label="备注" align="center" width="200px">
173
         <template slot-scope="scope">
170
         <template slot-scope="scope">
174
-        <el-input v-model="scope.row.supply_remake" style="width:160px" :disabled="disabled"></el-input>
171
+        <el-input v-model="scope.row.supply_remake" style="width:160px" :disabled="disabled" placeholder="请输入备注"></el-input>
175
         </template>
172
         </template>
176
     </el-table-column>
173
     </el-table-column>
177
 
174
 
197
         </template>
194
         </template>
198
     </el-table-column>
195
     </el-table-column>
199
   </el-table>
196
   </el-table>
200
-
197
+  <div style="margin-top: 10px">
198
+        <el-input
199
+          type="textarea"
200
+          :rows="2"
201
+          placeholder="备注信息"
202
+          v-model="return_remark"
203
+        >
204
+        </el-input>
205
+       </div>
201
    <!-- 审核水印 -->
206
    <!-- 审核水印 -->
202
   <img src="@/assets/purchase/Reviewed.png" alt="正在加载..." class="reviewImg" v-show="Reviewed == true" />
207
   <img src="@/assets/purchase/Reviewed.png" alt="正在加载..." class="reviewImg" v-show="Reviewed == true" />
203
 </el-form>
208
 </el-form>
205
       合计:{{getAllPrice()}} 元
210
       合计:{{getAllPrice()}} 元
206
    </div>
211
    </div>
207
    <div style="margin-top:10px">
212
    <div style="margin-top:10px">
208
-        <span>优惠率:<el-input style="width:100px" v-model="rate_of_concession" @input='addressChange' :disabled="disabled"></el-input>%</span>
213
+        <span>优惠率:<el-input style="width:150px" v-model="rate_of_concession" @input='addressChange' :disabled="disabled" placeholder="请输入优惠率"></el-input>%</span>
209
 
214
 
210
-        <span>优惠金额:<el-input style="width:100px" v-model="discount_amount" :disabled="disabled"></el-input></span>
215
+        <span>优惠金额:<el-input style="width:150px" v-model="discount_amount" :disabled="disabled" placeholder="请输入优惠金额"></el-input></span>
211
 
216
 
212
     </div>
217
     </div>
213
 </div>
218
 </div>
293
    showTwo:true,
298
    showTwo:true,
294
    showThree:false,
299
    showThree:false,
295
    orderList:[],
300
    orderList:[],
301
+   return_remark:"",
296
   };
302
   };
297
 },
303
 },
298
 methods:{
304
 methods:{
456
         this.recordInfo.tableList.splice(index, 1)
462
         this.recordInfo.tableList.splice(index, 1)
457
    }
463
    }
458
 },
464
 },
459
-
460
-changeTypeName(){
461
-
462
-},
463
-startTimeChange(){
464
-
465
-},
466
-endTimeChange(){
467
-
468
-},
469
-search(){
470
-
471
-},
472
-
473
 getWarehoseInfo(arr,max_unit,min_unit,min_number){
465
 getWarehoseInfo(arr,max_unit,min_unit,min_number){
474
     var total = 0
466
     var total = 0
475
     var max_str=  ""
467
     var max_str=  ""
548
         var start = this.start_time
540
         var start = this.start_time
549
         var end = this.end_time
541
         var end = this.end_time
550
         const params = {
542
         const params = {
551
-        'stockIn': this.recordInfo.tableList
543
+          stockIn: this.recordInfo.tableList,
544
+          return_remake:this.return_remark,
552
         }
545
         }
553
         console.log("param23232332",params)  
546
         console.log("param23232332",params)  
554
        
547
        
603
         }
596
         }
604
         this.is_check = info.is_check
597
         this.is_check = info.is_check
605
         this.number = info.number
598
         this.number = info.number
599
+        this.return_remark = info.return_remake
606
         this.id = info.id
600
         this.id = info.id
607
         this.supplier_name = info.supplier_id
601
         this.supplier_name = info.supplier_id
608
         this.rate_of_concession = info.rate_of_concession
602
         this.rate_of_concession = info.rate_of_concession
659
           } 
653
           } 
660
         }
654
         }
661
         console.log("orderINFO23323232",orderInfo)
655
         console.log("orderINFO23323232",orderInfo)
656
+        this.recordInfo.tableList = []
662
         this.recordInfo.tableList = orderInfo
657
         this.recordInfo.tableList = orderInfo
663
       }
658
       }
664
     })  
659
     })  

+ 1 - 1
src/xt_pages/supply/goodOrderQuery.vue View File

107
        </el-table-column>
107
        </el-table-column>
108
         <el-table-column label="已付款" align="center">
108
         <el-table-column label="已付款" align="center">
109
          <template slot-scope="scope">
109
          <template slot-scope="scope">
110
-           {{scope.row.payment}}
110
+           <span v-if="scope.row.payment >0">{{scope.row.payment}}</span> 
111
          </template>
111
          </template>
112
        </el-table-column>
112
        </el-table-column>
113
        <el-table-column label="数量" align="center">
113
        <el-table-column label="数量" align="center">