|
...
|
...
|
@@ -8,11 +8,6 @@ |
|
8
|
8
|
<view class="readonly-text">{{ form.orderNo }}</view>
|
|
9
|
9
|
</template>
|
|
10
|
10
|
</uni-list-item>
|
|
11
|
|
- <uni-list-item title="供货单位">
|
|
12
|
|
- <template v-slot:footer>
|
|
13
|
|
- <view class="readonly-text">{{ getDicName('SUPPLIER', form.supplyUnit, dicOptions.SUPPLIER) }}</view>
|
|
14
|
|
- </template>
|
|
15
|
|
- </uni-list-item>
|
|
16
|
11
|
<uni-list-item title="订货单位">
|
|
17
|
12
|
<template v-slot:footer>
|
|
18
|
13
|
<view class="readonly-text">{{ form.orderingUnitName }}</view>
|
|
...
|
...
|
@@ -23,20 +18,14 @@ |
|
23
|
18
|
<view class="readonly-text">{{ form.orderDate }}</view>
|
|
24
|
19
|
</template>
|
|
25
|
20
|
</uni-list-item>
|
|
26
|
|
- <uni-list-item title="生产厂">
|
|
|
21
|
+ <uni-list-item title="申请撤单日期">
|
|
27
|
22
|
<template v-slot:footer>
|
|
28
|
|
- <view class="readonly-text">{{ form.workshopName }}</view>
|
|
|
23
|
+ <view class="readonly-text">{{ form.documentPreparationDate }}</view>
|
|
29
|
24
|
</template>
|
|
30
|
25
|
</uni-list-item>
|
|
31
|
|
- <uni-list-item title="结算方式或期限">
|
|
32
|
|
- <template v-slot:footer>
|
|
33
|
|
- <view class="readonly-text">{{ form.settlementTerms }}</view>
|
|
34
|
|
- </template>
|
|
35
|
|
- </uni-list-item>
|
|
36
|
|
-
|
|
37
|
|
- <uni-list-item title="交货方式">
|
|
|
26
|
+ <uni-list-item title="所属办">
|
|
38
|
27
|
<template v-slot:footer>
|
|
39
|
|
- <uni-easyinput v-model="form.deliveryMethod" placeholder="请输入交货方式" :inputBorder="false" />
|
|
|
28
|
+ <view class="readonly-text">{{ form.deptName }}</view>
|
|
40
|
29
|
</template>
|
|
41
|
30
|
</uni-list-item>
|
|
42
|
31
|
</view>
|
|
...
|
...
|
@@ -47,90 +36,21 @@ |
|
47
|
36
|
</view>
|
|
48
|
37
|
|
|
49
|
38
|
<view class="section">
|
|
50
|
|
- <uni-list-item title="价格表编号">
|
|
51
|
|
- <template v-slot:footer>
|
|
52
|
|
- <uni-easyinput v-model="form.priceListNo" placeholder="请输入价格表编号" :inputBorder="false" />
|
|
53
|
|
- </template>
|
|
54
|
|
- </uni-list-item>
|
|
55
|
|
- <uni-list-item title="开票情况">
|
|
56
|
|
- <template v-slot:footer>
|
|
57
|
|
- <uni-easyinput v-model="form.invoicingStatus" placeholder="请输入开票情况" :inputBorder="false" />
|
|
58
|
|
- </template>
|
|
59
|
|
- </uni-list-item>
|
|
60
|
|
- <uni-list-item class="amount-item">
|
|
61
|
|
- <template v-slot:body>
|
|
62
|
|
- <view class="item-title"><text>运费</text></view>
|
|
63
|
|
- </template>
|
|
|
39
|
+ <uni-list-item title="撤销原因">
|
|
64
|
40
|
<template v-slot:footer>
|
|
65
|
|
- <view class="amount-row">
|
|
66
|
|
- <uni-easyinput type="number" v-model="form.shippingCost" placeholder="0.00" :inputBorder="false" />
|
|
67
|
|
- <text class="unit">元</text>
|
|
68
|
|
- </view>
|
|
|
41
|
+ <uni-easyinput type="textarea" v-model="form.revokeReason" placeholder="请输入撤销原因"
|
|
|
42
|
+ :inputBorder="false" />
|
|
69
|
43
|
</template>
|
|
70
|
44
|
</uni-list-item>
|
|
71
|
|
- <uni-list-item class="amount-item">
|
|
72
|
|
- <template v-slot:body>
|
|
73
|
|
- <view class="item-title"><text>包装费</text></view>
|
|
74
|
|
- </template>
|
|
|
45
|
+ </view>
|
|
|
46
|
+
|
|
|
47
|
+ <view class="section">
|
|
|
48
|
+ <uni-list-item title="撤销确认凭证">
|
|
75
|
49
|
<template v-slot:footer>
|
|
76
|
|
- <view class="amount-row">
|
|
77
|
|
- <uni-easyinput type="number" v-model="form.packagingFee" placeholder="0.00" :inputBorder="false" />
|
|
78
|
|
- <text class="unit">元</text>
|
|
79
|
|
- </view>
|
|
80
|
|
- </template>
|
|
81
|
|
- </uni-list-item>
|
|
82
|
|
- <uni-list-item class="select-item" :class="form.executionStandardName ? 'is-filled' : 'is-empty'" clickable
|
|
83
|
|
- @click="openSheet('executionStandard')" :rightText="form.executionStandardName || '请选择'" showArrow>
|
|
84
|
|
- <template v-slot:body>
|
|
85
|
|
- <view class="item-title"><text>执行标准</text></view>
|
|
|
50
|
+ <FileUpload v-model="confirmationVoucherFile" />
|
|
86
|
51
|
</template>
|
|
87
|
52
|
</uni-list-item>
|
|
88
|
53
|
</view>
|
|
89
|
|
-
|
|
90
|
|
-
|
|
91
|
|
- <view class="title-header">
|
|
92
|
|
- <image class="title-header_icon" src="/static/images/title.png" />
|
|
93
|
|
- <span>具体质量要求</span>
|
|
94
|
|
- </view>
|
|
95
|
|
-
|
|
96
|
|
- <uni-list-item title="件重条头">
|
|
97
|
|
- <template v-slot:footer>
|
|
98
|
|
- <uni-easyinput type="textarea" v-model="form.pieceWeightHeader" placeholder="请输入件重条头"
|
|
99
|
|
- :inputBorder="false" />
|
|
100
|
|
- </template>
|
|
101
|
|
- </uni-list-item>
|
|
102
|
|
- <uni-list-item title="表面">
|
|
103
|
|
- <template v-slot:footer>
|
|
104
|
|
- <uni-easyinput type="textarea" v-model="form.surface" placeholder="请输入表面" :inputBorder="false" />
|
|
105
|
|
- </template>
|
|
106
|
|
- </uni-list-item>
|
|
107
|
|
- <uni-list-item title="公差">
|
|
108
|
|
- <template v-slot:footer>
|
|
109
|
|
- <uni-easyinput type="textarea" v-model="form.tolerance" placeholder="请输入公差" :inputBorder="false" />
|
|
110
|
|
- </template>
|
|
111
|
|
- </uni-list-item>
|
|
112
|
|
- <uni-list-item title="性能">
|
|
113
|
|
- <template v-slot:footer>
|
|
114
|
|
- <uni-easyinput type="textarea" v-model="form.performance" placeholder="请输入性能" :inputBorder="false" />
|
|
115
|
|
- </template>
|
|
116
|
|
- </uni-list-item>
|
|
117
|
|
- <uni-list-item title="成分">
|
|
118
|
|
- <template v-slot:footer>
|
|
119
|
|
- <uni-easyinput type="textarea" v-model="form.element" placeholder="请输入成分" :inputBorder="false" />
|
|
120
|
|
- </template>
|
|
121
|
|
- </uni-list-item>
|
|
122
|
|
- <uni-list-item title="包装">
|
|
123
|
|
- <template v-slot:footer>
|
|
124
|
|
- <uni-easyinput type="textarea" v-model="form.packaging" placeholder="请输入包装" :inputBorder="false" />
|
|
125
|
|
- </template>
|
|
126
|
|
- </uni-list-item>
|
|
127
|
|
- <uni-list-item title="备注">
|
|
128
|
|
- <template v-slot:footer>
|
|
129
|
|
- <uni-easyinput type="textarea" v-model="form.remarks" placeholder="请输入备注" :inputBorder="false" />
|
|
130
|
|
- </template>
|
|
131
|
|
- </uni-list-item>
|
|
132
|
|
-
|
|
133
|
|
-
|
|
134
|
54
|
</uni-list>
|
|
135
|
55
|
</scroll-view>
|
|
136
|
56
|
|
|
...
|
...
|
@@ -152,44 +72,37 @@ |
|
152
|
72
|
import { getDetailApi, updateApi } from '@/api/revoke_list.js'
|
|
153
|
73
|
import Product from './product.vue'
|
|
154
|
74
|
import SingleSelectSheet from '@/components/single-select/index.vue'
|
|
|
75
|
+import FileUpload from '@/components/file-upload/index.vue'
|
|
155
|
76
|
import { getDicName } from '@/utils/dic.js'
|
|
156
|
77
|
import { getDicByCodes } from '@/utils/dic'
|
|
157
|
78
|
|
|
158
|
79
|
export default {
|
|
159
|
80
|
name: 'RevokeListModify',
|
|
160
|
|
- components: { Product, SingleSelectSheet },
|
|
|
81
|
+ components: { Product, SingleSelectSheet, FileUpload },
|
|
161
|
82
|
data() {
|
|
162
|
83
|
return {
|
|
163
|
84
|
id: '',
|
|
164
|
85
|
form: {
|
|
165
|
|
- orderId: '',
|
|
166
|
|
- purchaseOrderId: '',
|
|
|
86
|
+ purchaseOrderId: '',
|
|
|
87
|
+ id: '',
|
|
|
88
|
+ // 订单基础信息
|
|
167
|
89
|
orderNo: '',
|
|
168
|
|
- supplyUnit: '',
|
|
169
|
90
|
orderingUnit: '',
|
|
170
|
|
- orderDate: new Date().toISOString().substring(0, 10),
|
|
171
|
|
- workshopId: '',
|
|
172
|
|
- settlementTerms: '',
|
|
173
|
|
- deliveryMethod: '',
|
|
174
|
|
- priceListNo: '',
|
|
175
|
|
- invoicingStatus: '',
|
|
176
|
|
- shippingCost: '',
|
|
177
|
|
- packagingFee: '',
|
|
178
|
|
- executionStandard: '',
|
|
179
|
|
- executionStandardRemarks: '',
|
|
|
91
|
+ orderDate: '',
|
|
|
92
|
+ // 默认当前日期 格式为 yyyy-MM-dd
|
|
|
93
|
+ documentPreparationDate: new Date().toISOString().substring(0, 10),
|
|
|
94
|
+ deptName: '',
|
|
180
|
95
|
totalQuantity: '',
|
|
181
|
|
- afterTotalQuantity: '',
|
|
182
|
|
- pieceWeightHeader: '',
|
|
183
|
|
- surface: '',
|
|
184
|
|
- tolerance: '',
|
|
185
|
|
- performance: '',
|
|
186
|
|
- element: '',
|
|
187
|
|
- packaging: '',
|
|
188
|
|
- remarks: '',
|
|
|
96
|
+ totalRevokeQuantity: '',
|
|
|
97
|
+ revokeReason: '',
|
|
|
98
|
+ // 文件上传
|
|
|
99
|
+ confirmationVoucherFileName: '',
|
|
|
100
|
+ confirmationVoucherFileId: '',
|
|
189
|
101
|
},
|
|
190
|
102
|
initPurchaseOrderLineList: [],
|
|
191
|
103
|
dicOptions: { SUPPLIER: [], APPLICABLE_STANDARD: [] },
|
|
192
|
|
- sheet: { visible: false, title: '请选择', options: [], value: '', field: '' }
|
|
|
104
|
+ sheet: { visible: false, title: '请选择', options: [], value: '', field: '' },
|
|
|
105
|
+ confirmationVoucherFile: { id: '', name: '' },
|
|
193
|
106
|
}
|
|
194
|
107
|
},
|
|
195
|
108
|
onLoad(query) {
|
|
...
|
...
|
@@ -215,7 +128,11 @@ export default { |
|
215
|
128
|
next.purchaseOrderId = m.orderId || '';
|
|
216
|
129
|
next.purchaseOrderLineList = Array.isArray(m.afterChangeSpecList) ? m.afterChangeSpecList.map(x => ({ ...x })) : []
|
|
217
|
130
|
this.form = next;
|
|
218
|
|
- this.initPurchaseOrderLineList = next.purchaseOrderLineList || [];
|
|
|
131
|
+ this.initPurchaseOrderLineList = next.purchaseOrderRevokeLineList || [];
|
|
|
132
|
+ this.confirmationVoucherFile = {
|
|
|
133
|
+ id: m.confirmationVoucherFileId || '',
|
|
|
134
|
+ name: m.confirmationVoucherFileName || '',
|
|
|
135
|
+ }
|
|
219
|
136
|
this.refreshStandardName()
|
|
220
|
137
|
} catch (e) {
|
|
221
|
138
|
uni.showToast({ title: '加载失败', icon: 'none' })
|
...
|
...
|
|