apply-clients 3.2.50 → 3.2.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -3
- package/src/AndroidApp.vue +2 -2
- package/src/apply.js +7 -0
- package/src/components/app_apply/Process/AppExplorationUser.vue +200 -200
- package/src/components/app_apply/Process/AppServiceControl.vue +620 -620
- package/src/components/app_apply/Supervisory/AppProcessSupervisory.vue +1 -1
- package/src/components/image/tubiao2.png +0 -0
- package/src/components/image//347/247/246/345/215/216.png +0 -0
- package/src/components/product/Apply/Supervisory/SupervisoryhCart.vue +1 -1
- package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractInformation.vue +104 -7
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventoryInformation.vue +7 -3
- package/src/components/product/Ledger/Function/InstallInfoSelect.vue +1 -1
- package/src/components/product/Ledger/MaterialManagement/DeliveryRecord/DeliveryRecordList.vue +11 -4
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/InventoryInformationList.vue +11 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutStock.vue +9 -1
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutboundOrder.vue +56 -14
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseMaterial.vue +10 -2
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseOrder.vue +33 -2
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/ReturnMaterial.vue +149 -2
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderInformation.vue +17 -5
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/PrintMaterialBill.vue +10 -8
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PrintPurchaseOrder.vue +13 -6
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsInformation.vue +40 -9
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsList.vue +10 -60
- package/src/components/product/Ledger/MaterialManagement/WarehousingRecord/WarehousingRecordList.vue +4 -4
- package/src/components/product/Ledger/Process/ProcessBusiness.vue +8 -0
- package/src/components/product/Ledger/Process/ProcessSelect.vue +39 -14
- package/src/components/product/Ledger/Process/Service/ServiceControl.vue +747 -639
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingAddingMaterial.vue +330 -0
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingInformation.vue +117 -25
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingMaterialDepot.vue +113 -0
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingMaterialList.vue +143 -0
- package/src/components/product/Ledger/Supervisory/BatchProcessing.vue +79 -0
- package/src/components/product/Ledger/Supervisory/BathProcessinglist.vue +205 -0
- package/src/components/product/Ledger/Supervisory/ProcessSupervisory.vue +8 -0
- package/src/components/product/Ledger/Supervisory/Service/PrepareContract.vue +393 -0
- package/src/components/product/Ledger/Supervisory/Service/SupervisoryServiceControl.vue +2 -7
- package/src/components/product/Ledger/Supervisory/SupervisoryCart.vue +1 -1
- package/src/components/product/Ledger/Supervisory/SupervisoryList.vue +79 -16
- package/src/components/product/ServiceView.vue +1 -3
- package/dist-android/index.html +0 -3
- package/dist-android/static/.gitkeep +0 -0
- package/dist-android/static/0.js +0 -2
- package/dist-android/static/0.js.map +0 -1
- package/dist-android/static/1.js +0 -2
- package/dist-android/static/1.js.map +0 -1
- package/dist-android/static/10.js +0 -2
- package/dist-android/static/10.js.map +0 -1
- package/dist-android/static/100.js +0 -2
- package/dist-android/static/100.js.map +0 -1
- package/dist-android/static/11.js +0 -2
- package/dist-android/static/11.js.map +0 -1
- package/dist-android/static/12.js +0 -2
- package/dist-android/static/12.js.map +0 -1
- package/dist-android/static/13.js +0 -2
- package/dist-android/static/13.js.map +0 -1
- package/dist-android/static/14.js +0 -2
- package/dist-android/static/14.js.map +0 -1
- package/dist-android/static/15.js +0 -2
- package/dist-android/static/15.js.map +0 -1
- package/dist-android/static/16.js +0 -2
- package/dist-android/static/16.js.map +0 -1
- package/dist-android/static/17.js +0 -2
- package/dist-android/static/17.js.map +0 -1
- package/dist-android/static/18.js +0 -2
- package/dist-android/static/18.js.map +0 -1
- package/dist-android/static/19.js +0 -2
- package/dist-android/static/19.js.map +0 -1
- package/dist-android/static/2.js +0 -2
- package/dist-android/static/2.js.map +0 -1
- package/dist-android/static/20.js +0 -2
- package/dist-android/static/20.js.map +0 -1
- package/dist-android/static/21.js +0 -2
- package/dist-android/static/21.js.map +0 -1
- package/dist-android/static/22.js +0 -2
- package/dist-android/static/22.js.map +0 -1
- package/dist-android/static/23.js +0 -2
- package/dist-android/static/23.js.map +0 -1
- package/dist-android/static/24.js +0 -2
- package/dist-android/static/24.js.map +0 -1
- package/dist-android/static/25.js +0 -2
- package/dist-android/static/25.js.map +0 -1
- package/dist-android/static/26.js +0 -2
- package/dist-android/static/26.js.map +0 -1
- package/dist-android/static/27.js +0 -2
- package/dist-android/static/27.js.map +0 -1
- package/dist-android/static/28.js +0 -2
- package/dist-android/static/28.js.map +0 -1
- package/dist-android/static/29.js +0 -2
- package/dist-android/static/29.js.map +0 -1
- package/dist-android/static/3.js +0 -2
- package/dist-android/static/3.js.map +0 -1
- package/dist-android/static/30.js +0 -2
- package/dist-android/static/30.js.map +0 -1
- package/dist-android/static/31.js +0 -2
- package/dist-android/static/31.js.map +0 -1
- package/dist-android/static/32.js +0 -2
- package/dist-android/static/32.js.map +0 -1
- package/dist-android/static/33.js +0 -2
- package/dist-android/static/33.js.map +0 -1
- package/dist-android/static/34.js +0 -2
- package/dist-android/static/34.js.map +0 -1
- package/dist-android/static/35.js +0 -2
- package/dist-android/static/35.js.map +0 -1
- package/dist-android/static/36.js +0 -2
- package/dist-android/static/36.js.map +0 -1
- package/dist-android/static/37.js +0 -2
- package/dist-android/static/37.js.map +0 -1
- package/dist-android/static/38.js +0 -2
- package/dist-android/static/38.js.map +0 -1
- package/dist-android/static/39.js +0 -2
- package/dist-android/static/39.js.map +0 -1
- package/dist-android/static/4.js +0 -2
- package/dist-android/static/4.js.map +0 -1
- package/dist-android/static/40.js +0 -2
- package/dist-android/static/40.js.map +0 -1
- package/dist-android/static/41.js +0 -2
- package/dist-android/static/41.js.map +0 -1
- package/dist-android/static/42.js +0 -2
- package/dist-android/static/42.js.map +0 -1
- package/dist-android/static/43.js +0 -2
- package/dist-android/static/43.js.map +0 -1
- package/dist-android/static/44.js +0 -2
- package/dist-android/static/44.js.map +0 -1
- package/dist-android/static/45.js +0 -2
- package/dist-android/static/45.js.map +0 -1
- package/dist-android/static/46.js +0 -2
- package/dist-android/static/46.js.map +0 -1
- package/dist-android/static/47.js +0 -2
- package/dist-android/static/47.js.map +0 -1
- package/dist-android/static/48.js +0 -2
- package/dist-android/static/48.js.map +0 -1
- package/dist-android/static/49.js +0 -2
- package/dist-android/static/49.js.map +0 -1
- package/dist-android/static/5.js +0 -2
- package/dist-android/static/5.js.map +0 -1
- package/dist-android/static/50.js +0 -2
- package/dist-android/static/50.js.map +0 -1
- package/dist-android/static/51.js +0 -2
- package/dist-android/static/51.js.map +0 -1
- package/dist-android/static/52.js +0 -2
- package/dist-android/static/52.js.map +0 -1
- package/dist-android/static/53.js +0 -2
- package/dist-android/static/53.js.map +0 -1
- package/dist-android/static/54.js +0 -2
- package/dist-android/static/54.js.map +0 -1
- package/dist-android/static/55.js +0 -2
- package/dist-android/static/55.js.map +0 -1
- package/dist-android/static/56.js +0 -2
- package/dist-android/static/56.js.map +0 -1
- package/dist-android/static/57.js +0 -2
- package/dist-android/static/57.js.map +0 -1
- package/dist-android/static/58.js +0 -2
- package/dist-android/static/58.js.map +0 -1
- package/dist-android/static/59.js +0 -2
- package/dist-android/static/59.js.map +0 -1
- package/dist-android/static/6.js +0 -2
- package/dist-android/static/6.js.map +0 -1
- package/dist-android/static/60.js +0 -2
- package/dist-android/static/60.js.map +0 -1
- package/dist-android/static/61.js +0 -2
- package/dist-android/static/61.js.map +0 -1
- package/dist-android/static/62.js +0 -2
- package/dist-android/static/62.js.map +0 -1
- package/dist-android/static/63.js +0 -2
- package/dist-android/static/63.js.map +0 -1
- package/dist-android/static/64.js +0 -2
- package/dist-android/static/64.js.map +0 -1
- package/dist-android/static/65.js +0 -2
- package/dist-android/static/65.js.map +0 -1
- package/dist-android/static/66.js +0 -2
- package/dist-android/static/66.js.map +0 -1
- package/dist-android/static/67.js +0 -2
- package/dist-android/static/67.js.map +0 -1
- package/dist-android/static/68.js +0 -2
- package/dist-android/static/68.js.map +0 -1
- package/dist-android/static/69.js +0 -2
- package/dist-android/static/69.js.map +0 -1
- package/dist-android/static/7.js +0 -6
- package/dist-android/static/7.js.map +0 -1
- package/dist-android/static/70.js +0 -2
- package/dist-android/static/70.js.map +0 -1
- package/dist-android/static/71.js +0 -2
- package/dist-android/static/71.js.map +0 -1
- package/dist-android/static/72.js +0 -2
- package/dist-android/static/72.js.map +0 -1
- package/dist-android/static/73.js +0 -2
- package/dist-android/static/73.js.map +0 -1
- package/dist-android/static/74.js +0 -2
- package/dist-android/static/74.js.map +0 -1
- package/dist-android/static/75.js +0 -2
- package/dist-android/static/75.js.map +0 -1
- package/dist-android/static/76.js +0 -2
- package/dist-android/static/76.js.map +0 -1
- package/dist-android/static/77.js +0 -2
- package/dist-android/static/77.js.map +0 -1
- package/dist-android/static/78.js +0 -2
- package/dist-android/static/78.js.map +0 -1
- package/dist-android/static/79.js +0 -2
- package/dist-android/static/79.js.map +0 -1
- package/dist-android/static/8.js +0 -2
- package/dist-android/static/8.js.map +0 -1
- package/dist-android/static/80.js +0 -2
- package/dist-android/static/80.js.map +0 -1
- package/dist-android/static/81.js +0 -2
- package/dist-android/static/81.js.map +0 -1
- package/dist-android/static/82.js +0 -2
- package/dist-android/static/82.js.map +0 -1
- package/dist-android/static/83.js +0 -2
- package/dist-android/static/83.js.map +0 -1
- package/dist-android/static/84.js +0 -2
- package/dist-android/static/84.js.map +0 -1
- package/dist-android/static/85.js +0 -2
- package/dist-android/static/85.js.map +0 -1
- package/dist-android/static/86.js +0 -2
- package/dist-android/static/86.js.map +0 -1
- package/dist-android/static/87.js +0 -2
- package/dist-android/static/87.js.map +0 -1
- package/dist-android/static/88.js +0 -2
- package/dist-android/static/88.js.map +0 -1
- package/dist-android/static/89.js +0 -2
- package/dist-android/static/89.js.map +0 -1
- package/dist-android/static/9.js +0 -3
- package/dist-android/static/9.js.map +0 -1
- package/dist-android/static/90.js +0 -2
- package/dist-android/static/90.js.map +0 -1
- package/dist-android/static/91.js +0 -2
- package/dist-android/static/91.js.map +0 -1
- package/dist-android/static/92.js +0 -2
- package/dist-android/static/92.js.map +0 -1
- package/dist-android/static/93.js +0 -2
- package/dist-android/static/93.js.map +0 -1
- package/dist-android/static/94.js +0 -2
- package/dist-android/static/94.js.map +0 -1
- package/dist-android/static/95.js +0 -2
- package/dist-android/static/95.js.map +0 -1
- package/dist-android/static/96.js +0 -2
- package/dist-android/static/96.js.map +0 -1
- package/dist-android/static/97.js +0 -2
- package/dist-android/static/97.js.map +0 -1
- package/dist-android/static/98.js +0 -2
- package/dist-android/static/98.js.map +0 -1
- package/dist-android/static/99.js +0 -2
- package/dist-android/static/99.js.map +0 -1
- package/dist-android/static/app.css +0 -2
- package/dist-android/static/app.css.map +0 -1
- package/dist-android/static/app.js +0 -80
- package/dist-android/static/app.js.map +0 -1
- package/dist-android/static/batchleft.png +0 -0
- package/dist-android/static/batchright.png +0 -0
- package/dist-android/static/bluemainbg.jpg +0 -0
- package/dist-android/static/config.json +0 -7
- package/dist-android/static/denglu.png +0 -0
- package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
- package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
- package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
- package/dist-android/static/huangtengbiaozhi.png +0 -0
- package/dist-android/static/jingyin.jpg +0 -0
- package/dist-android/static/login_bg.jpg +0 -0
- package/dist-android/static/login_title.png +0 -0
- package/dist-android/static/login_title1.png +0 -0
- package/dist-android/static/loginbg.jpg +0 -0
- package/dist-android/static/loginlogo.png +0 -0
- package/dist-android/static/main_logo.png +0 -0
- package/dist-android/static/mainbg.jpg +0 -0
- package/dist-android/static/menulogo.png +0 -0
- package/dist-android/static/newmainbg.jpg +0 -0
- package/dist-android/static/psicon.png +0 -0
- package/dist-android/static/singleleft.png +0 -0
- package/dist-android/static/singleright.png +0 -0
- package/dist-android/static/treeopen.png +0 -0
- package/dist-android/static/treeout.png +0 -0
- package/dist-android/static/treeset.png +0 -0
- package/dist-android/static/usericon.png +0 -0
- package/dist-android/static/workflow_apply.json +0 -766
- package/dist-android/static/xinxi.png +0 -0
- package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
- package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
- package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
- package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseOrder.vue
CHANGED
|
@@ -88,11 +88,32 @@
|
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
90
90
|
|
|
91
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_price_without_tax.required ? 'has-error' : '']">
|
|
92
|
+
<label class="control-label-justify control-label col-sm-6">不含税价款</label>
|
|
93
|
+
<div class="col-sm-6">
|
|
94
|
+
<input class="form-control input_view" style=""
|
|
95
|
+
type="text" v-validate:f_price_without_tax = "['required']"
|
|
96
|
+
v-model="model.f_price_without_tax"
|
|
97
|
+
:value="model.f_price_without_tax"
|
|
98
|
+
/>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_vat_tax.required ? 'has-error' : '']">
|
|
102
|
+
<label class="control-label-justify control-label col-sm-6">增值税税款</label>
|
|
103
|
+
<div class="col-sm-6">
|
|
104
|
+
<input class="form-control input_view" style=""
|
|
105
|
+
type="text" v-validate:f_vat_tax = "['required']"
|
|
106
|
+
v-model="model.f_vat_tax"
|
|
107
|
+
:value="model.f_vat_tax"
|
|
108
|
+
/>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
91
111
|
<div class="col-sm-12">
|
|
92
112
|
<data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
93
113
|
<template partial='head'>
|
|
94
114
|
<tr>
|
|
95
115
|
<th style="white-space: nowrap;">序号</th>
|
|
116
|
+
<th style="white-space: nowrap;">编码</th>
|
|
96
117
|
<th style="white-space: nowrap;">名称</th>
|
|
97
118
|
<th style="white-space: nowrap;">型号</th>
|
|
98
119
|
<th style="white-space: nowrap;">规格</th>
|
|
@@ -113,6 +134,7 @@
|
|
|
113
134
|
<template partial='body'>
|
|
114
135
|
<tr>
|
|
115
136
|
<td style="text-align: center;">{{$index+1}}</td>
|
|
137
|
+
<td style="text-align: center;">{{row.f_material_coding}}</td>
|
|
116
138
|
<td style="text-align: center;">{{row.f_material_name}}</td>
|
|
117
139
|
<td style="text-align: center;">{{row.f_material_model}}</td>
|
|
118
140
|
<td style="text-align: center;">{{row.f_material_norm}}</td>
|
|
@@ -158,6 +180,12 @@
|
|
|
158
180
|
:valueSingle="true"></input-select>
|
|
159
181
|
</div>
|
|
160
182
|
</div>
|
|
183
|
+
<div class="col-sm-12 form-group" :class="[$mv.f_material_coding.required ? 'has-error' : '']">
|
|
184
|
+
<label class="control-label col-sm-2">材料编码</label>
|
|
185
|
+
<div class="col-sm-9">
|
|
186
|
+
<input class="form-control" type="text" readonly v-validate:f_material_coding = "['required']" v-model="material.f_material_coding" :value="material.f_material_coding"/>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
161
189
|
<div class="col-sm-12 form-group" :class="[$mv.f_material_name.required ? 'has-error' : '']">
|
|
162
190
|
<label class="control-label col-sm-2">材料名称</label>
|
|
163
191
|
<div class="col-sm-9">
|
|
@@ -271,7 +299,10 @@ export default {
|
|
|
271
299
|
{resolveMsg: null, rejectMsg: '订单编号查询失败!!!'}
|
|
272
300
|
)
|
|
273
301
|
|
|
274
|
-
|
|
302
|
+
/*console.dir(res)*/
|
|
303
|
+
|
|
304
|
+
if (res.data.length > 0 && res.data[0].f_status != '作废') {
|
|
305
|
+
console.log('订单状态:'+res.data[0].f_status)
|
|
275
306
|
this.$showAlert('订单编号已存在!!!', 'warning', 3000)
|
|
276
307
|
this.model.f_order_number = null
|
|
277
308
|
return
|
|
@@ -363,7 +394,7 @@ export default {
|
|
|
363
394
|
|
|
364
395
|
res.data.forEach(item => {
|
|
365
396
|
this.contractMaterial.push({
|
|
366
|
-
'label': `${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
|
|
397
|
+
'label': `${item.f_material_coding}--${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
|
|
367
398
|
'value': item
|
|
368
399
|
})
|
|
369
400
|
})
|
package/src/components/product/Ledger/MaterialManagement/InventoryInformation/ReturnMaterial.vue
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
:value.sync="cea"
|
|
13
13
|
v-model="cea"
|
|
14
14
|
:options="ceaList"
|
|
15
|
+
:timeout="500"
|
|
16
|
+
@select-search="select_search"
|
|
15
17
|
:valueSingle="true"></input-select>
|
|
16
18
|
</div>
|
|
17
19
|
</div>
|
|
@@ -50,6 +52,7 @@
|
|
|
50
52
|
<template partial='head'>
|
|
51
53
|
<tr>
|
|
52
54
|
<th style="white-space: nowrap;">序号</th>
|
|
55
|
+
<th style="white-space: nowrap;">材料编码</th>
|
|
53
56
|
<th style="white-space: nowrap;">材料名称</th>
|
|
54
57
|
<th style="white-space: nowrap;">材料型号</th>
|
|
55
58
|
<th style="white-space: nowrap;">材料规格</th>
|
|
@@ -62,12 +65,14 @@
|
|
|
62
65
|
<button @click="$parent.$parent.showMaterial = !$parent.$parent.showMaterial" type="button" class="btn btn-info">
|
|
63
66
|
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
|
64
67
|
</button>
|
|
68
|
+
<button @click="$parent.$parent.showFile = !$parent.$parent.showFile" type="button" class="btn btn-info">批量导入</button>
|
|
65
69
|
</th>
|
|
66
70
|
</tr>
|
|
67
71
|
</template>
|
|
68
72
|
<template partial='body'>
|
|
69
73
|
<tr>
|
|
70
74
|
<td style="text-align: center;">{{$index+1}}</td>
|
|
75
|
+
<td style="text-align: center;">{{row.f_material_coding}}</td>
|
|
71
76
|
<td style="text-align: center;">{{row.f_material_name}}</td>
|
|
72
77
|
<td style="text-align: center;">{{row.f_material_model}}</td>
|
|
73
78
|
<td style="text-align: center;">{{row.f_material_norm}}</td>
|
|
@@ -98,6 +103,12 @@
|
|
|
98
103
|
<span class="modal-title"><font size="3">添加材料</font></span>
|
|
99
104
|
</header>
|
|
100
105
|
<article slot="modal-body" class="form-horizontal modal-body clearfix">
|
|
106
|
+
<div class="col-sm-12 form-group" :class="[$mv.f_material_coding.required ? 'has-error' : '']">
|
|
107
|
+
<label class="control-label col-sm-2">材料编码</label>
|
|
108
|
+
<div class="col-sm-9">
|
|
109
|
+
<input class="form-control" type="text" v-validate:f_material_coding = "['required']" v-model="material.f_material_coding" :value="material.f_material_coding"/>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
101
112
|
<div class="col-sm-12 form-group" :class="[$mv.f_material_name.required ? 'has-error' : '']">
|
|
102
113
|
<label class="control-label col-sm-2">材料名称</label>
|
|
103
114
|
<div class="col-sm-9">
|
|
@@ -161,6 +172,18 @@
|
|
|
161
172
|
</modal>
|
|
162
173
|
</validator>
|
|
163
174
|
|
|
175
|
+
<modal :show.sync="showFile" v-ref:modal backdrop="true" title="选择文件">
|
|
176
|
+
<header slot="modal-header" class="modal-header">
|
|
177
|
+
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
178
|
+
<h4 class="modal-title">选择文件</h4>
|
|
179
|
+
</header>
|
|
180
|
+
<article slot="modal-body" class="modal-body">
|
|
181
|
+
<div class="form-group">
|
|
182
|
+
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
183
|
+
</div>
|
|
184
|
+
</article>
|
|
185
|
+
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
186
|
+
</modal>
|
|
164
187
|
</div>
|
|
165
188
|
</template>
|
|
166
189
|
|
|
@@ -178,13 +201,41 @@ export default {
|
|
|
178
201
|
ceaList: [],
|
|
179
202
|
cea: {},
|
|
180
203
|
showMaterial: false,
|
|
181
|
-
index: null
|
|
204
|
+
index: null,
|
|
205
|
+
showFile: false
|
|
182
206
|
}
|
|
183
207
|
},
|
|
184
208
|
ready () {
|
|
185
209
|
this.getCEAList()
|
|
186
210
|
},
|
|
187
211
|
methods: {
|
|
212
|
+
select_search(text){
|
|
213
|
+
debugger
|
|
214
|
+
console.log("----------------"+text)
|
|
215
|
+
debugger
|
|
216
|
+
if(text){
|
|
217
|
+
let pcdText=text=`and f_cea_number like '%${text}%'`
|
|
218
|
+
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data:{items:"*",tablename:"t_apply",condition:`f_cea_number is not null and f_sub_state != '完工' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
|
219
|
+
console.log('请求发送完成!!!!!'+JSON.stringify(res))
|
|
220
|
+
if(res.data.length>0){
|
|
221
|
+
res.data.forEach((item)=>{
|
|
222
|
+
|
|
223
|
+
this.ceaList.push({
|
|
224
|
+
'label': item.f_cea_number,
|
|
225
|
+
'value': {
|
|
226
|
+
id: item.id,
|
|
227
|
+
f_cea_number: item.f_cea_number,
|
|
228
|
+
f_entry_name: item.f_entry_name,
|
|
229
|
+
f_construction_team:item.f_construction_team
|
|
230
|
+
}
|
|
231
|
+
})
|
|
232
|
+
})
|
|
233
|
+
}
|
|
234
|
+
})
|
|
235
|
+
}else{
|
|
236
|
+
this.getCEAList()
|
|
237
|
+
}
|
|
238
|
+
},
|
|
188
239
|
addReturnMaterialWarehousing () {
|
|
189
240
|
this.$dispatch('addReturnMaterialWarehousing', this.model)
|
|
190
241
|
},
|
|
@@ -245,9 +296,105 @@ export default {
|
|
|
245
296
|
})
|
|
246
297
|
})
|
|
247
298
|
|
|
248
|
-
}
|
|
299
|
+
},
|
|
300
|
+
closeFile () {
|
|
301
|
+
this.showFile = false
|
|
302
|
+
// 将选的文件清空
|
|
303
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
304
|
+
},
|
|
305
|
+
saveOrUpdate (i) {
|
|
306
|
+
let flag = this.model.data.some(item => {
|
|
307
|
+
if (
|
|
308
|
+
item.f_material_coding === this.material.f_material_coding &&
|
|
309
|
+
item.f_material_name === this.material.f_material_name &&
|
|
310
|
+
item.f_material_norm === this.material.f_material_norm &&
|
|
311
|
+
item.f_material_model === this.material.f_material_model &&
|
|
312
|
+
item.f_price === this.material.f_price &&
|
|
313
|
+
item.f_noprice === this.material.f_noprice &&
|
|
314
|
+
item.f_unit === this.material.f_unit &&
|
|
315
|
+
item.f_quantity === this.material.f_quantity &&
|
|
316
|
+
item.f_remarks === this.material.f_remarks
|
|
317
|
+
) {
|
|
318
|
+
return true
|
|
319
|
+
}
|
|
320
|
+
return false
|
|
321
|
+
})
|
|
322
|
+
if (flag) {
|
|
323
|
+
if (isEmpty(i)) {
|
|
324
|
+
this.$showAlert('该物料已经存在!!!', 'warning', 3000)
|
|
325
|
+
} else {
|
|
326
|
+
throw `第${i}行物料已经存在!!!`
|
|
327
|
+
}
|
|
328
|
+
} else {
|
|
329
|
+
if (isEmpty(this.index)) {
|
|
330
|
+
this.model.data.push(this.material)
|
|
331
|
+
} else {
|
|
332
|
+
this.model.data.splice(this.index, 1, this.material)
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
249
336
|
},
|
|
250
337
|
events: {
|
|
338
|
+
async 'onFileUpload'(file, result) {
|
|
339
|
+
let data = {
|
|
340
|
+
filepath: result.f_downloadpath
|
|
341
|
+
}
|
|
342
|
+
let res = await this.$resetpost(`rs/logic/importRefuelingWarehousingContent`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0)
|
|
343
|
+
let i = 1
|
|
344
|
+
for (const item of res.data) {
|
|
345
|
+
if (!item.material.f_material_name) {
|
|
346
|
+
this.$showAlert(`第${i}行数据材料名称不存在!!!`, 'warning', 3000)
|
|
347
|
+
this.closeFile()
|
|
348
|
+
return
|
|
349
|
+
}
|
|
350
|
+
if (!item.material.f_material_model) {
|
|
351
|
+
this.$showAlert(`第${i}行数据材料型号不存在!!!`, 'warning', 3000)
|
|
352
|
+
this.closeFile()
|
|
353
|
+
return
|
|
354
|
+
}
|
|
355
|
+
if (!item.material.f_material_norm) {
|
|
356
|
+
this.$showAlert(`第${i}行数据材料规格不存在!!!`, 'warning', 3000)
|
|
357
|
+
this.closeFile()
|
|
358
|
+
return
|
|
359
|
+
}
|
|
360
|
+
if (!item.material.f_price) {
|
|
361
|
+
this.$showAlert(`第${i}行数据含税单价不存在!!!`, 'warning', 3000)
|
|
362
|
+
this.closeFile()
|
|
363
|
+
return
|
|
364
|
+
}
|
|
365
|
+
if (!item.material.f_noprice) {
|
|
366
|
+
this.$showAlert(`第${i}行数据不含税单价不存在!!!`, 'warning', 3000)
|
|
367
|
+
this.closeFile()
|
|
368
|
+
return
|
|
369
|
+
}
|
|
370
|
+
if (!item.material.f_unit) {
|
|
371
|
+
this.$showAlert(`第${i}行数据单位不存在!!!`, 'warning', 3000)
|
|
372
|
+
this.closeFile()
|
|
373
|
+
return
|
|
374
|
+
}
|
|
375
|
+
if (!item.material.f_quantity) {
|
|
376
|
+
this.$showAlert(`第${i}行数据数量不存在!!!`, 'warning', 3000)
|
|
377
|
+
this.closeFile()
|
|
378
|
+
return
|
|
379
|
+
}
|
|
380
|
+
if (!item.material.f_remarks) {
|
|
381
|
+
this.$showAlert(`第${i}行数据备注不存在!!!`, 'warning', 3000)
|
|
382
|
+
this.closeFile()
|
|
383
|
+
return
|
|
384
|
+
}
|
|
385
|
+
this.material = item.material
|
|
386
|
+
try {
|
|
387
|
+
this.saveOrUpdate(i)
|
|
388
|
+
} catch (e) {
|
|
389
|
+
this.$showAlert(e, 'danger', 3000)
|
|
390
|
+
this.closeFile()
|
|
391
|
+
return
|
|
392
|
+
}
|
|
393
|
+
i++
|
|
394
|
+
}
|
|
395
|
+
this.$showAlert(`成功导入${i-1}条数据`, 'success', 3000)
|
|
396
|
+
this.closeFile()
|
|
397
|
+
}
|
|
251
398
|
}
|
|
252
399
|
}
|
|
253
400
|
</script>
|
package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderInformation.vue
CHANGED
|
@@ -120,10 +120,11 @@
|
|
|
120
120
|
</div>
|
|
121
121
|
</div>
|
|
122
122
|
<div class="col-sm-12">
|
|
123
|
-
<data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
123
|
+
<data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
124
124
|
<template partial='head'>
|
|
125
125
|
<tr>
|
|
126
126
|
<th style="white-space: nowrap;">序号</th>
|
|
127
|
+
<th style="white-space: nowrap;">材料编码</th>
|
|
127
128
|
<th style="white-space: nowrap;">材料名称</th>
|
|
128
129
|
<th style="white-space: nowrap;">材料型号</th>
|
|
129
130
|
<th style="white-space: nowrap;">材料规格</th>
|
|
@@ -140,13 +141,14 @@
|
|
|
140
141
|
<template partial='body'>
|
|
141
142
|
<tr>
|
|
142
143
|
<td style="text-align: center;">{{$index+1}}</td>
|
|
144
|
+
<td style="text-align: center;">{{row.f_material_coding}}</td>
|
|
143
145
|
<td style="text-align: center;">{{row.f_material_name}}</td>
|
|
144
146
|
<td style="text-align: center;">{{row.f_material_model}}</td>
|
|
145
147
|
<td style="text-align: center;">{{row.f_material_norm}}</td>
|
|
146
148
|
<td style="text-align: center;">{{row.f_unit}}</td>
|
|
147
149
|
<td style="text-align: center;">{{row.f_price}}</td>
|
|
148
150
|
<td style="text-align: center;">{{row.f_noprice}}</td>
|
|
149
|
-
<td style="text-align: center;">{{row.
|
|
151
|
+
<td style="text-align: center;">{{parseFloat(row.f_noprice * row.f_prepare_quantity).toFixed(2)}}</td>
|
|
150
152
|
<td style="text-align: center;">{{row.f_prepare_remarks}}</td>
|
|
151
153
|
<td style="text-align: center;">{{row.f_prepare_quantity}}</td>
|
|
152
154
|
<td style="text-align: center;">{{row.f_actual_quantity}}</td>
|
|
@@ -170,7 +172,7 @@
|
|
|
170
172
|
<h4 class="modal-title">打印预览</h4>
|
|
171
173
|
</header>
|
|
172
174
|
<article slot="modal-body" class="modal-body clearfix">
|
|
173
|
-
<print-material-bill :outbound-order="outboundOrder" :material-prepare="model.
|
|
175
|
+
<print-material-bill :outbound-order="outboundOrder" :material-prepare="model.selectPrint" v-ref:print></print-material-bill>
|
|
174
176
|
</article>
|
|
175
177
|
<footer slot="modal-footer" class="modal-footer">
|
|
176
178
|
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
@@ -180,6 +182,7 @@
|
|
|
180
182
|
</template>
|
|
181
183
|
|
|
182
184
|
<script>
|
|
185
|
+
import {PagedList} from 'vue-client'
|
|
183
186
|
import {HttpResetClass} from 'vue-client'
|
|
184
187
|
import {isEmpty} from '../../../../Util'
|
|
185
188
|
export default {
|
|
@@ -188,7 +191,9 @@ export default {
|
|
|
188
191
|
data () {
|
|
189
192
|
return {
|
|
190
193
|
model: {
|
|
191
|
-
|
|
194
|
+
rows: [],
|
|
195
|
+
selectPrint:[],
|
|
196
|
+
pageIndex:1
|
|
192
197
|
},
|
|
193
198
|
showPrint: false,
|
|
194
199
|
ceaList: []
|
|
@@ -211,6 +216,13 @@ export default {
|
|
|
211
216
|
this.showPrint = false
|
|
212
217
|
},
|
|
213
218
|
showPrintModal () {
|
|
219
|
+
debugger
|
|
220
|
+
this.model.selectPrint = this.$refs.grid.getRowData()
|
|
221
|
+
this.model.selectPrint.lumpsum= 0
|
|
222
|
+
for (var i=0;i<this.model.selectPrint.length;i++){
|
|
223
|
+
this.model.selectPrint.lumpsum =this.model.selectPrint.lumpsum + this.model.selectPrint[i].f_noprice * this.model.selectPrint[i].f_prepare_quantity
|
|
224
|
+
}
|
|
225
|
+
this.model.selectPrint.lumpsum=this.model.selectPrint.lumpsum.toFixed(2)
|
|
214
226
|
this.showPrint = true
|
|
215
227
|
},
|
|
216
228
|
async getCEAList () {
|
|
@@ -248,7 +260,7 @@ export default {
|
|
|
248
260
|
{resolveMsg: null, rejectMsg: '出库单查询失败!!!'}
|
|
249
261
|
)
|
|
250
262
|
|
|
251
|
-
this.model.
|
|
263
|
+
this.model.rows = res.data
|
|
252
264
|
}
|
|
253
265
|
},
|
|
254
266
|
computed: {
|
package/src/components/product/Ledger/MaterialManagement/OutboundOrder/PrintMaterialBill.vue
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<style id="style">
|
|
3
3
|
td{
|
|
4
4
|
height: 30px;
|
|
5
|
-
width: 60px;
|
|
6
5
|
padding: 0px;
|
|
7
6
|
text-align: center;
|
|
8
7
|
}
|
|
@@ -30,14 +29,14 @@
|
|
|
30
29
|
<h4 style="margin: 0 0 5px 0">西安市天然气工程有限公司{{outboundOrder.f_entry_type}}项目材料领用单</h4>
|
|
31
30
|
<p class="top">
|
|
32
31
|
<span>编号:{{outboundOrder.f_ticket_number}}</span>
|
|
33
|
-
<span
|
|
32
|
+
<span>此票有限期为五天过期作废</span>
|
|
34
33
|
<span>{{new Date(outboundOrder.f_billing_time).Format('yyyy年MM月dd日')}}</span>
|
|
35
34
|
</p>
|
|
36
35
|
<table border="1">
|
|
37
36
|
<tr>
|
|
38
37
|
<td>施工单位:</td>
|
|
39
38
|
<td colspan="4">{{ outboundOrder.f_picking_unit }}</td>
|
|
40
|
-
<td colspan="
|
|
39
|
+
<td colspan="3">CEA:{{ outboundOrder.f_cea_number }}</td>
|
|
41
40
|
<td :rowspan="materialPrepare.length + 13" style="width: 10px">
|
|
42
41
|
<p>白<br/>联<br/>库<br/>房</p>
|
|
43
42
|
|
|
@@ -52,9 +51,10 @@
|
|
|
52
51
|
<td>工地名称:</td>
|
|
53
52
|
<td colspan="4">{{ outboundOrder.f_picking_site }}</td>
|
|
54
53
|
<td>发料仓库:</td>
|
|
55
|
-
<td>{{ outboundOrder.f_warehouse }}</td>
|
|
54
|
+
<td colspan="2">{{ outboundOrder.f_warehouse }}</td>
|
|
56
55
|
</tr>
|
|
57
56
|
<tr>
|
|
57
|
+
<td>材料编码</td>
|
|
58
58
|
<td>材料名称</td>
|
|
59
59
|
<td>材料型号</td>
|
|
60
60
|
<td>单位</td>
|
|
@@ -64,13 +64,14 @@
|
|
|
64
64
|
<td>备注</td>
|
|
65
65
|
</tr>
|
|
66
66
|
<tr v-for="item in materialPrepare">
|
|
67
|
+
<td>{{ item.f_material_coding }}</td>
|
|
67
68
|
<td>{{ item.f_material_name }}</td>
|
|
68
69
|
<td>{{ item.f_material_model }}</td>
|
|
69
70
|
<td>{{ item.f_unit }}</td>
|
|
70
71
|
<td>{{ item.f_prepare_quantity }}</td>
|
|
71
72
|
<td>{{ item.f_noprice }}</td>
|
|
72
|
-
<td>{{ item.
|
|
73
|
-
<td>{{ item.
|
|
73
|
+
<td>{{ parseFloat(item.f_noprice * item.f_prepare_quantity).toFixed(2) }}</td>
|
|
74
|
+
<td>{{ item.f_prepare_remarks}}</td>
|
|
74
75
|
</tr>
|
|
75
76
|
<tr v-for="item in supplement">
|
|
76
77
|
<td></td>
|
|
@@ -80,14 +81,15 @@
|
|
|
80
81
|
<td></td>
|
|
81
82
|
<td></td>
|
|
82
83
|
<td></td>
|
|
84
|
+
<td></td>
|
|
83
85
|
</tr>
|
|
84
86
|
<tr>
|
|
85
87
|
<td>合计:</td>
|
|
86
|
-
<td colspan="
|
|
88
|
+
<td colspan="7">¥{{ materialPrepare.lumpsum }}</td>
|
|
87
89
|
</tr>
|
|
88
90
|
</table>
|
|
89
91
|
<p class="bottom">
|
|
90
|
-
<span
|
|
92
|
+
<span>主管:</span>
|
|
91
93
|
<span>制单:{{ outboundOrder.f_operator }}</span>
|
|
92
94
|
<span>发料:</span>
|
|
93
95
|
<span>领料:</span>
|
package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PrintPurchaseOrder.vue
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</style>
|
|
25
25
|
<div id="print">
|
|
26
26
|
<img src="../../../../image/tubiao.png"style="width:150px; height:30px">
|
|
27
|
-
<h4 style="margin: 30px 0 5px 0"
|
|
27
|
+
<h4 style="margin: 30px 0 5px 0">西安市天然气工程有限责任公司材料采购订单</h4>
|
|
28
28
|
<p class="space-between">
|
|
29
29
|
<span>部门:设备材料部</span>
|
|
30
30
|
<span>申请人:{{ purchaseRecords.f_applicant }}</span>
|
|
@@ -37,18 +37,20 @@
|
|
|
37
37
|
<table border="1">
|
|
38
38
|
<tr>
|
|
39
39
|
<td>序号</td>
|
|
40
|
+
<td>编码</td>
|
|
40
41
|
<td>名称</td>
|
|
41
42
|
<td>型号</td>
|
|
42
43
|
<td>规格</td>
|
|
43
44
|
<td>单位</td>
|
|
44
45
|
<td>数量</td>
|
|
45
|
-
<td
|
|
46
|
+
<td>含税单价</td>
|
|
46
47
|
<td>金额</td>
|
|
47
48
|
<td>库存</td>
|
|
48
49
|
<td>备注</td>
|
|
49
50
|
</tr>
|
|
50
51
|
<tr v-for="item in material">
|
|
51
52
|
<td>{{ $index+1 }}</td>
|
|
53
|
+
<td>{{ item.f_material_coding }}</td>
|
|
52
54
|
<td>{{ item.f_material_name }}</td>
|
|
53
55
|
<td>{{ item.f_material_model }}</td>
|
|
54
56
|
<td>{{ item.f_material_norm }}</td>
|
|
@@ -56,7 +58,7 @@
|
|
|
56
58
|
<td>{{ item.f_forecast_quantity }}</td>
|
|
57
59
|
<td>{{ item.f_price }}</td>
|
|
58
60
|
<td>{{ item.f_forecast_money }}</td>
|
|
59
|
-
<td>{{ item.
|
|
61
|
+
<td>{{ item.totalstock }}</td>
|
|
60
62
|
<td>{{ item.f_remarks }}</td>
|
|
61
63
|
</tr>
|
|
62
64
|
<tr v-for="item in supplement">
|
|
@@ -70,16 +72,21 @@
|
|
|
70
72
|
<td></td>
|
|
71
73
|
<td></td>
|
|
72
74
|
<td></td>
|
|
75
|
+
<td></td>
|
|
76
|
+
</tr>
|
|
77
|
+
<tr>
|
|
78
|
+
<td colspan="11" style="text-align: left;padding-left: 10px">总金额(大写):{{ smalltoBIG(material.lumpsum) }} 总金额(小写): {{material.lumpsum}}元</td>
|
|
73
79
|
</tr>
|
|
74
80
|
<tr>
|
|
75
|
-
<td colspan="
|
|
81
|
+
<td colspan="11" style="text-align: right;padding-left: 10px">不含税价款:{{ purchaseRecords.f_price_without_tax }}元 增值税税款: {{purchaseRecords.f_vat_tax}}元</td>
|
|
76
82
|
</tr>
|
|
77
83
|
</table>
|
|
78
|
-
<p class="space-between"
|
|
84
|
+
<p class="space-between">
|
|
79
85
|
<span>需求日期:{{ purchaseRecords.f_demand_date }}</span>
|
|
80
86
|
<span>合同状况:{{ purchaseRecords.f_contract_status }}</span>
|
|
87
|
+
<span>合同时间:{{ purchaseRecords.f_contract_time+"——"+purchaseRecords.f_contract_expiration_date }}</span>
|
|
81
88
|
</p>
|
|
82
|
-
<p class="space-between" style="padding: 10px
|
|
89
|
+
<p class="space-between" style="padding: 10px 160px 10px 40px">
|
|
83
90
|
<span>部门经理:</span>
|
|
84
91
|
<span>分管副总:</span>
|
|
85
92
|
</p>
|
|
@@ -83,6 +83,24 @@
|
|
|
83
83
|
:value="purchaseRecords.f_actual_money"/>
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
86
|
+
<div class="col-sm-4 form-group item">
|
|
87
|
+
<label class="control-label-justify control-label col-sm-6">不含税价款</label>
|
|
88
|
+
<div class="col-sm-6">
|
|
89
|
+
<input class="form-control input_view" style=""
|
|
90
|
+
type="text" readonly
|
|
91
|
+
v-model="purchaseRecords.f_price_without_tax"
|
|
92
|
+
:value="purchaseRecords.f_price_without_tax"/>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-sm-4 form-group item">
|
|
96
|
+
<label class="control-label-justify control-label col-sm-6">增值税税款</label>
|
|
97
|
+
<div class="col-sm-6">
|
|
98
|
+
<input class="form-control input_view" style=""
|
|
99
|
+
type="text" readonly
|
|
100
|
+
v-model="purchaseRecords.f_vat_tax"
|
|
101
|
+
:value="purchaseRecords.f_vat_tax"/>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
86
104
|
<div class="col-sm-4 form-group item">
|
|
87
105
|
<label class="control-label-justify control-label col-sm-6">订单状态</label>
|
|
88
106
|
<div class="col-sm-6">
|
|
@@ -94,11 +112,12 @@
|
|
|
94
112
|
</div>
|
|
95
113
|
|
|
96
114
|
<div class="col-sm-12">
|
|
97
|
-
<data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
115
|
+
<data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
98
116
|
<template partial='head'>
|
|
99
117
|
<tr>
|
|
100
118
|
<th style="white-space: nowrap;">序号</th>
|
|
101
119
|
<th style="white-space: nowrap;">名称</th>
|
|
120
|
+
<th style="white-space: nowrap;">编码</th>
|
|
102
121
|
<th style="white-space: nowrap;">型号</th>
|
|
103
122
|
<th style="white-space: nowrap;">规格</th>
|
|
104
123
|
<th style="white-space: nowrap;">单位</th>
|
|
@@ -117,6 +136,7 @@
|
|
|
117
136
|
<tr>
|
|
118
137
|
<td style="text-align: center;">{{$index+1}}</td>
|
|
119
138
|
<td style="text-align: center;">{{row.f_material_name}}</td>
|
|
139
|
+
<td style="text-align: center;">{{row.f_material_coding}}</td>
|
|
120
140
|
<td style="text-align: center;">{{row.f_material_model}}</td>
|
|
121
141
|
<td style="text-align: center;">{{row.f_material_norm}}</td>
|
|
122
142
|
<td style="text-align: center;">{{row.f_unit}}</td>
|
|
@@ -127,7 +147,7 @@
|
|
|
127
147
|
<td style="text-align: center;">{{row.f_quantity}}</td>
|
|
128
148
|
<td style="text-align: center;">{{row.f_forecast_quantity-row.f_quantity}}</td>
|
|
129
149
|
<td style="text-align: center;">{{row.f_actual_money}}</td>
|
|
130
|
-
<td style="text-align: center;">{{row.
|
|
150
|
+
<td style="text-align: center;">{{row.totalstock}}</td>
|
|
131
151
|
<td style="text-align: center;">{{row.f_remarks}}</td>
|
|
132
152
|
</tr>
|
|
133
153
|
</template>
|
|
@@ -135,7 +155,7 @@
|
|
|
135
155
|
</div>
|
|
136
156
|
|
|
137
157
|
<div class="col-sm-12 form-group" style="text-align: center">
|
|
138
|
-
<button class="btn btn-primary" @click.prevent="
|
|
158
|
+
<button class="btn btn-primary" @click.prevent="showPrintModal()">打印预览</button>
|
|
139
159
|
</div>
|
|
140
160
|
</div>
|
|
141
161
|
</form>
|
|
@@ -146,7 +166,7 @@
|
|
|
146
166
|
<h4 class="modal-title">打印预览</h4>
|
|
147
167
|
</header>
|
|
148
168
|
<article slot="modal-body" class="modal-body clearfix">
|
|
149
|
-
<print-purchase-order :purchase-records="purchaseRecords" :material="model.
|
|
169
|
+
<print-purchase-order :purchase-records="purchaseRecords" :material="model.selectPrint" v-ref:print></print-purchase-order>
|
|
150
170
|
</article>
|
|
151
171
|
<footer slot="modal-footer" class="modal-footer">
|
|
152
172
|
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
@@ -165,7 +185,9 @@ export default {
|
|
|
165
185
|
data () {
|
|
166
186
|
return {
|
|
167
187
|
model: {
|
|
168
|
-
|
|
188
|
+
rows: null,
|
|
189
|
+
selectPrint:[],
|
|
190
|
+
pageIndex:1
|
|
169
191
|
},
|
|
170
192
|
showPrint: false
|
|
171
193
|
}
|
|
@@ -174,22 +196,31 @@ export default {
|
|
|
174
196
|
this.getPurchaseRecordsMaterial()
|
|
175
197
|
},
|
|
176
198
|
methods: {
|
|
199
|
+
async showPrintModal(){
|
|
200
|
+
this.model.selectPrint = this.$refs.grid.getRowData()
|
|
201
|
+
this.model.selectPrint.lumpsum= 0
|
|
202
|
+
this.model.selectPrint.nolumpsum= 0
|
|
203
|
+
this.model.selectPrint.cenglumpsum =0
|
|
204
|
+
for (var i=0;i<this.model.selectPrint.length;i++){
|
|
205
|
+
this.model.selectPrint.lumpsum =this.model.selectPrint.lumpsum + this.model.selectPrint[i].f_forecast_money
|
|
206
|
+
}
|
|
207
|
+
this.model.selectPrint.lumpsum=this.model.selectPrint.lumpsum.toFixed(2)
|
|
208
|
+
this.showPrint = true
|
|
209
|
+
},
|
|
177
210
|
print () {
|
|
178
211
|
this.$refs.print.$refs.print.PrintTable()
|
|
179
212
|
},
|
|
180
213
|
async getPurchaseRecordsMaterial () {
|
|
181
214
|
let data = {
|
|
182
|
-
tablename: 't_purchase_order_material',
|
|
183
215
|
condition: `f_purchase_order_id = ${this.purchaseRecords.id}`
|
|
184
216
|
}
|
|
185
|
-
|
|
186
217
|
let res = await this.$resetpost(
|
|
187
|
-
`rs/sql/
|
|
218
|
+
`rs/sql/purchaseOrder`,
|
|
188
219
|
{data: data},
|
|
189
220
|
{resolveMsg: null, rejectMsg: '采购物料查询失败!!!'}
|
|
190
221
|
)
|
|
191
222
|
|
|
192
|
-
this.model.
|
|
223
|
+
this.model.rows = res.data
|
|
193
224
|
}
|
|
194
225
|
},
|
|
195
226
|
computed: {
|