Commit 25a9410dfd2269bb114728ff85e5724dd1876117

Authored by gesilong
2 parents 6422eb27 64357a73

Merge branch 'cjerp-contract-1.0' into publish_cjerp

... ... @@ -44,7 +44,8 @@
44 44
45 45 <!-- 产品 -->
46 46 <view class="section2">
47   - <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange" :orderDate="form.orderDate" />
  47 + <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
  48 + :orderDate="form.orderDate" :contractType="form.contractType" />
48 49 </view>
49 50
50 51 <view class="section">
... ...
... ... @@ -17,12 +17,14 @@
17 17
18 18 <!-- 产品-变更前 -->
19 19 <view class="mgb10">
20   - <Product title="变更前" mode="view" :list="form.beforeChangeSpecList" :totalQuantity="form.totalQuantity || 0" />
  20 + <Product title="变更前" mode="view" :list="form.beforeChangeSpecList" :totalQuantity="form.totalQuantity || 0"
  21 + :contractType="form.contractType" />
21 22 </view>
22 23
23 24 <!-- 产品-变更后 -->
24 25 <view class="mgb10">
25   - <Product title="变更后" mode="view" :list="form.afterChangeSpecList" :totalQuantity="form.afterTotalQuantity || 0" />
  26 + <Product title="变更后" mode="view" :list="form.afterChangeSpecList" :totalQuantity="form.afterTotalQuantity || 0"
  27 + :contractType="form.contractType" />
26 28 </view>
27 29
28 30 <view class="section">
... ...
... ... @@ -43,7 +43,8 @@
43 43
44 44 <!-- 产品 -->
45 45 <view class="section2">
46   - <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange" :orderDate="form.orderDate" />
  46 + <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
  47 + :orderDate="form.orderDate" :contractType="form.contractType" />
47 48 </view>
48 49
49 50 <view class="section">
... ...
... ... @@ -118,7 +118,7 @@
118 118 />
119 119 </template>
120 120 </uni-list-item>
121   - <uni-list-item v-if="item.showSalesPrice" title="销售价格">
  121 + <uni-list-item v-if="item.showSalesPrice" :title="salesPriceTitle">
122 122 <template v-slot:footer>
123 123 <uni-easyinput type="digit" v-model="item.salesPrice" placeholder="请输入销售价格"
124 124 :inputBorder="false"
... ... @@ -128,7 +128,7 @@
128 128 </uni-list-item>
129 129 <uni-list-item class="amount-item">
130 130 <template v-slot:body>
131   - <view class="item-title"><text>包装费</text></view>
  131 + <view class="item-title"><text>{{ packagingFeeTitle }}</text></view>
132 132 </template>
133 133 <template v-slot:footer>
134 134 <view class="amount-row">
... ... @@ -136,7 +136,7 @@
136 136 :inputBorder="false"
137 137 @input="onNonNegativeNumberInput($event, item, idx, 'packagingFee')"
138 138 @blur="onNonNegativeNumberBlur(item, idx, 'packagingFee')" />
139   - <text class="unit"></text>
  139 + <text class="unit">{{ moneyUnit }}</text>
140 140 </view>
141 141 </template>
142 142 </uni-list-item>
... ... @@ -206,9 +206,9 @@
206 206 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
207 207 <view class="row"><text class="label">数量kg</text><text class="value">{{ item.quantity }}</text></view>
208 208 <!-- showSalesPrice 判断是否显示 -->
209   - <view class="row" v-if="item.showSalesPrice"><text class="label">销售价格</text><text class="value">{{
  209 + <view class="row" v-if="item.showSalesPrice"><text class="label">{{ salesPriceTitle }}</text><text class="value">{{
210 210 item.salesPrice }}</text></view>
211   - <view class="row"><text class="label">包装费</text><text class="value">{{
  211 + <view class="row"><text class="label">{{ packagingFeeTitle }}</text><text class="value">{{
212 212 item.packagingFee }}</text></view>
213 213 <view class="row"><text class="label">发货日期</text><text class="value">{{ item.deliveryDate }}</text>
214 214 </view>
... ... @@ -235,7 +235,8 @@ export default {
235 235 list: { type: Array, default: () => [] },
236 236 max: { type: Number, default: 8 },
237 237 totalQuantity: { type: Number, default: 0 },
238   - orderDate: { type: String, default: '' }
  238 + orderDate: { type: String, default: '' },
  239 + contractType: { type: String, default: '' }
239 240 },
240 241 data() {
241 242 return {
... ... @@ -258,6 +259,18 @@ export default {
258 259 const mm = String(dt.getMonth() + 1).padStart(2, '0')
259 260 const dd = String(dt.getDate()).padStart(2, '0')
260 261 return `${yy}/${mm}/${dd}`
  262 + },
  263 + isIntlContract() {
  264 + return ['INTL_STD_CONTRACT', 'INTL_INVENTORY_AGMT', 'INTL_OPEN_SPEC_AGMT'].includes(String(this.contractType || ''))
  265 + },
  266 + moneyUnit() {
  267 + return this.isIntlContract ? '美元' : '元'
  268 + },
  269 + salesPriceTitle() {
  270 + return `单价(${this.moneyUnit}/kg)`
  271 + },
  272 + packagingFeeTitle() {
  273 + return `包装费(${this.moneyUnit}/kg)`
261 274 }
262 275 },
263 276 watch: {
... ...
... ... @@ -16,13 +16,13 @@
16 16 <!-- 产品-变更前 -->
17 17 <view class="mgb10">
18 18 <Product title="变更前" mode="view" :options="genderOptions" :list="form.beforeChangeSpecList"
19   - :totalQuantity="form.totalQuantity || 0" />
  19 + :totalQuantity="form.totalQuantity || 0" :contractType="form.contractType" />
20 20 </view>
21 21
22 22 <!-- 产品-变更后 -->
23 23 <view class="mgb10">
24 24 <Product title="变更后" mode="view" :options="genderOptions" :list="form.afterChangeSpecList"
25   - :totalQuantity="form.afterTotalQuantity || 0" />
  25 + :totalQuantity="form.afterTotalQuantity || 0" :contractType="form.contractType" />
26 26 </view>
27 27
28 28 <view class="section">
... ...
... ... @@ -37,6 +37,11 @@
37 37 <uni-easyinput v-model="qualityForm.packaging" placeholder="请输入" />
38 38 </template>
39 39 </uni-list-item>
  40 + <uni-list-item title="备注">
  41 + <template v-slot:footer>
  42 + <uni-easyinput v-model="qualityForm.remarks" placeholder="请输入" />
  43 + </template>
  44 + </uni-list-item>
40 45 </uni-list>
41 46 </view>
42 47 <view class="block" v-for="(item, idx) in items" :key="item.raw && (item.raw.id || item.raw.lineId || item.raw.productId) || ('row-' + idx)">
... ... @@ -245,7 +250,8 @@ export default {
245 250 tolerance: '',
246 251 performance: '',
247 252 component: '',
248   - packaging: ''
  253 + packaging: '',
  254 + remarks: ''
249 255 }
250 256 }
251 257 },
... ... @@ -341,7 +347,8 @@ export default {
341 347 tolerance: data.tolerance || '',
342 348 performance: data.performance || '',
343 349 component: data.component || '',
344   - packaging: data.packaging || ''
  350 + packaging: data.packaging || '',
  351 + remarks: data.remarks || ''
345 352 }
346 353 const lines = Array.isArray(data.contractDistributorLineList) ? data.contractDistributorLineList : []
347 354 const init = lines.map(v => ({
... ... @@ -534,6 +541,7 @@ export default {
534 541 performance: this.qualityForm.performance,
535 542 component: this.qualityForm.component,
536 543 packaging: this.qualityForm.packaging,
  544 + remarks: this.qualityForm.remarks,
537 545 contractDistributorLineList: selected
538 546 }
539 547
... ...
... ... @@ -37,6 +37,11 @@
37 37 <uni-easyinput v-model="qualityForm.packaging" placeholder="请输入" />
38 38 </template>
39 39 </uni-list-item>
  40 + <uni-list-item title="备注">
  41 + <template v-slot:footer>
  42 + <uni-easyinput v-model="qualityForm.remarks" placeholder="请输入" />
  43 + </template>
  44 + </uni-list-item>
40 45 </uni-list>
41 46 </view>
42 47 <view class="block" v-for="(item, idx) in items" :key="item.raw && (item.raw.id || item.raw.lineId || item.raw.productId) || ('row-' + idx)">
... ... @@ -245,7 +250,8 @@ export default {
245 250 tolerance: '',
246 251 performance: '',
247 252 component: '',
248   - packaging: ''
  253 + packaging: '',
  254 + remarks: ''
249 255 }
250 256 }
251 257 },
... ... @@ -357,7 +363,8 @@ export default {
357 363 tolerance: data.tolerance || '',
358 364 performance: data.performance || '',
359 365 component: data.component || '',
360   - packaging: data.packaging || ''
  366 + packaging: data.packaging || '',
  367 + remarks: data.remarks || ''
361 368 }
362 369 const lines = Array.isArray(data.contractDistributorLineList) ? data.contractDistributorLineList : []
363 370 const init = lines.map(v => ({
... ... @@ -550,6 +557,7 @@ export default {
550 557 performance: this.qualityForm.performance,
551 558 component: this.qualityForm.component,
552 559 packaging: this.qualityForm.packaging,
  560 + remarks: this.qualityForm.remarks,
553 561 contractDistributorLineList: selected
554 562 }
555 563
... ...
... ... @@ -65,7 +65,8 @@
65 65 <!-- 产品 -->
66 66 <view class="section2">
67 67 <Product mode="approve" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
68   - :orderDate="form.orderDate" :canEditDeliveryAndAssessment="canEditQualityFields" />
  68 + :orderDate="form.orderDate" :canEditDeliveryAndAssessment="canEditQualityFields"
  69 + :contractType="form.contractType" />
69 70 </view>
70 71
71 72 <view class="section">
... ... @@ -191,7 +192,8 @@
191 192 <!--是否试样订单可编辑 特例-->
192 193 <!-- 产品 -->
193 194 <view class="mgb10">
194   - <Product mode="approve2" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange" />
  195 + <Product mode="approve2" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
  196 + :contractType="form.contractType" />
195 197 </view>
196 198
197 199 <view class="section">
... ...
... ... @@ -34,7 +34,8 @@
34 34
35 35 <!-- 产品 -->
36 36 <view class="mgb10">
37   - <Product mode="view" :list="form.purchaseOrderLineList" :totalQuantity="form.totalQuantity || 0" />
  37 + <Product mode="view" :list="form.purchaseOrderLineList" :totalQuantity="form.totalQuantity || 0"
  38 + :contractType="form.contractType" />
38 39 </view>
39 40
40 41 <view class="section">
... ...
... ... @@ -63,7 +63,9 @@
63 63
64 64 <!-- 产品 -->
65 65 <view class="section2">
66   - <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange" :pageType="'modify'" :orderDate="form.orderDate" :canEditDeliveryAndAssessment="canEditQualityFields" />
  66 + <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
  67 + :pageType="'modify'" :orderDate="form.orderDate" :canEditDeliveryAndAssessment="canEditQualityFields"
  68 + :contractType="form.contractType" />
67 69 </view>
68 70
69 71 <view class="section">
... ...
... ... @@ -99,7 +99,7 @@
99 99 <uni-easyinput type="digit" v-model="item.quantity" placeholder="请输入数量" :inputBorder="false" :disabled="true" />
100 100 </template>
101 101 </uni-list-item>
102   - <uni-list-item title="销售价格" v-if="item.showSalesPrice">
  102 + <uni-list-item :title="salesPriceTitle" v-if="item.showSalesPrice">
103 103 <template v-slot:footer>
104 104 <uni-easyinput type="digit" v-model="item.salesPrice" placeholder="请输入销售价格" :inputBorder="false" :disabled="true" />
105 105 </template>
... ... @@ -107,7 +107,7 @@
107 107
108 108 <uni-list-item class="amount-item">
109 109 <template v-slot:body>
110   - <view class="item-title"><text>包装费</text></view>
  110 + <view class="item-title"><text>{{ packagingFeeTitle }}</text></view>
111 111 </template>
112 112 <template v-slot:footer>
113 113 <view class="amount-row">
... ... @@ -116,7 +116,7 @@
116 116 :disabled="canEditDeliveryAndAssessment && !roleCodes.includes('bscnq')"
117 117 @input="onNonNegativeNumberInput($event, item, idx, 'packagingFee')"
118 118 @blur="onNonNegativeNumberBlur(item, idx, 'packagingFee')" />
119   - <text class="unit"></text>
  119 + <text class="unit">{{ moneyUnit }}</text>
120 120 </view>
121 121 </template>
122 122 </uni-list-item>
... ... @@ -189,12 +189,11 @@
189 189 class="label">数量kg</text><text class="value">{{ item.quantity }}</text>
190 190 </view>
191 191 <view class="row" :class="{ 'noneStyle': item.showSalesPrice }" v-if="item.showSalesPrice"><text
192   - class="label">销售价格</text><text class="value">{{
193   - item.salesPrice }}</text></view>
  192 + class="label">{{ salesPriceTitle }}</text><text class="value">{{ item.salesPrice }}</text></view>
194 193 <uni-list class="edit-list">
195 194 <uni-list-item class="amount-item">
196 195 <template v-slot:body>
197   - <view class="item-title"><text>包装费</text></view>
  196 + <view class="item-title"><text>{{ packagingFeeTitle }}</text></view>
198 197 </template>
199 198 <template v-slot:footer>
200 199 <view class="amount-row">
... ... @@ -202,7 +201,7 @@
202 201 :inputBorder="false"
203 202 @input="onNonNegativeNumberInput($event, item, idx, 'packagingFee')"
204 203 @blur="onNonNegativeNumberBlur(item, idx, 'packagingFee')" :disabled="!roleCodes.includes('bscnq') && canEditDeliveryAndAssessment"/>
205   - <text class="unit"></text>
  204 + <text class="unit">{{ moneyUnit }}</text>
206 205 </view>
207 206 </template>
208 207 </uni-list-item>
... ... @@ -275,9 +274,8 @@
275 274 class="label">数量kg</text><text class="value">{{ item.quantity }}</text>
276 275 </view>
277 276 <view class="row" v-if="item.showSalesPrice"><text
278   - class="label">销售价格</text><text class="value">{{
279   - item.salesPrice }}</text></view>
280   - <view class="row"><text class="label">包装费(元)</text><text class="value">{{ item.packagingFee }}</text></view>
  277 + class="label">{{ salesPriceTitle }}</text><text class="value">{{ item.salesPrice }}</text></view>
  278 + <view class="row"><text class="label">{{ packagingFeeTitle }}</text><text class="value">{{ item.packagingFee }}</text></view>
281 279 <view class="row"><text class="label">发货日期</text><text class="value">{{ item.deliveryDate }}</text></view>
282 280 <view class="row"><text class="label">考核超协</text><text class="value">{{ item.assessmentExceedsAgreement }}</text></view>
283 281 <uni-list class="edit-list2">
... ... @@ -334,9 +332,9 @@
334 332 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
335 333 <view class="row"><text class="label">数量kg</text><text class="value">{{ item.quantity }}</text></view>
336 334 <!-- showSalesPrice 判断是否显示 -->
337   - <view class="row" v-if="item.showSalesPrice"><text class="label">销售价格</text><text class="value">{{
  335 + <view class="row" v-if="item.showSalesPrice"><text class="label">{{ salesPriceTitle }}</text><text class="value">{{
338 336 item.salesPrice }}</text></view>
339   - <view class="row"><text class="label">包装费</text><text class="value">{{
  337 + <view class="row"><text class="label">{{ packagingFeeTitle }}</text><text class="value">{{
340 338 item.packagingFee }}</text></view>
341 339 <view class="row"><text class="label">发货日期</text><text class="value">{{ item.deliveryDate }}</text>
342 340 </view>
... ... @@ -371,6 +369,7 @@ export default {
371 369 totalQuantity: { type: Number, default: 0 },
372 370 pageType: { type: String, default: '' },
373 371 orderDate: { type: String, default: '' },
  372 + contractType: { type: String, default: '' },
374 373 canEditDeliveryAndAssessment: { type: Boolean, default: false },
375 374 // onlyEditDeliveryAndAssessment: { type: Boolean, default: false }
376 375 },
... ... @@ -397,6 +396,18 @@ export default {
397 396 const dd = String(dt.getDate()).padStart(2, '0')
398 397 return `${yy}/${mm}/${dd}`
399 398 },
  399 + isIntlContract() {
  400 + return ['INTL_STD_CONTRACT', 'INTL_INVENTORY_AGMT', 'INTL_OPEN_SPEC_AGMT'].includes(String(this.contractType || ''))
  401 + },
  402 + moneyUnit() {
  403 + return this.isIntlContract ? '美元' : '元'
  404 + },
  405 + salesPriceTitle() {
  406 + return `单价(${this.moneyUnit}/kg)`
  407 + },
  408 + packagingFeeTitle() {
  409 + return `包装费(${this.moneyUnit}/kg)`
  410 + },
400 411 roleCodes() {
401 412 const g = this.$store && this.$store.getters
402 413 return (g && g.roleCodes) || []
... ...
... ... @@ -21,7 +21,8 @@
21 21
22 22 <!-- 产品 -->
23 23 <view class="mgb10">
24   - <Product mode="view" :list="form.purchaseOrderLineList" :totalQuantity="form.totalQuantity || 0" />
  24 + <Product mode="view" :list="form.purchaseOrderLineList" :totalQuantity="form.totalQuantity || 0"
  25 + :contractType="form.contractType" />
25 26 </view>
26 27
27 28 <view class="section">
... ...
... ... @@ -44,7 +44,7 @@
44 44 <!-- 产品 -->
45 45 <view class="section2">
46 46 <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
47   - :orderDate="form.orderDate" />
  47 + :orderDate="form.orderDate" :contractType="form.contractType" />
48 48 </view>
49 49 <view class="footer">
50 50 <view class="view-total">
... ...
... ... @@ -20,7 +20,8 @@
20 20 <!-- 产品 -->
21 21 <view class="section2">
22 22 <Product mode="approve" :list="initPurchaseOrderLineList"
23   - :canEditSupplementary="canEditSupplementary" @change="purchaseOrderLineListChange" />
  23 + :canEditSupplementary="canEditSupplementary" @change="purchaseOrderLineListChange"
  24 + :contractType="form.contractType" />
24 25 </view>
25 26 <view class="section3">
26 27 <view class="view-total">
... ...
... ... @@ -20,6 +20,7 @@
20 20 :totalQuantity="form.totalQuantity"
21 21 :totalShippedQuantity="form.totalShippedQuantity"
22 22 :totalSupplementaryQuantity="form.totalSupplementaryQuantity"
  23 + :contractType="form.contractType"
23 24 />
24 25 </view>
25 26 </view>
... ...
... ... @@ -45,7 +45,7 @@
45 45 <view class="section2">
46 46 <!-- mode="fill" 允许个别字段编辑 -->
47 47 <Product mode="fill" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
48   - :orderDate="form.orderDate" />
  48 + :orderDate="form.orderDate" :contractType="form.contractType" />
49 49 </view>
50 50
51 51 <view class="footer">
... ... @@ -469,4 +469,4 @@ export default {
469 469 }
470 470 }
471 471 }
472   -</style>
\ No newline at end of file
  472 +</style>
... ...
... ... @@ -45,7 +45,7 @@
45 45 <view class="section2">
46 46 <!-- mode="add" 允许编辑 -->
47 47 <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
48   - :orderDate="form.orderDate" />
  48 + :orderDate="form.orderDate" :contractType="form.contractType" />
49 49 </view>
50 50 <view class="footer">
51 51 <view class="view-total">
... ... @@ -496,4 +496,4 @@ export default {
496 496 }
497 497 }
498 498 }
499   -</style>
\ No newline at end of file
  499 +</style>
... ...
... ... @@ -129,7 +129,7 @@
129 129 :inputBorder="false"
130 130 @input="onNonNegativeNumberInput($event, item, idx, 'salesPrice')"
131 131 @blur="onNonNegativeNumberBlur(item, idx, 'salesPrice')" />
132   - <text class="unit"></text>
  132 + <text class="unit">{{ moneyUnit }}</text>
133 133 </view>
134 134 </template>
135 135 </uni-list-item>
... ... @@ -143,7 +143,7 @@
143 143 :inputBorder="false"
144 144 @input="onNonNegativeNumberInput($event, item, idx, 'packagingFee')"
145 145 @blur="onNonNegativeNumberBlur(item, idx, 'packagingFee')" />
146   - <text class="unit"></text>
  146 + <text class="unit">{{ moneyUnit }}</text>
147 147 </view>
148 148 </template>
149 149 </uni-list-item>
... ... @@ -247,12 +247,12 @@
247 247 <text class="value">{{ item.supplementaryQuantity }}</text>
248 248 </template>
249 249 </uni-list-item>
250   - <uni-list-item class="amount-item" title="单价(元/kg)">
  250 + <uni-list-item class="amount-item" :title="salesPriceTitle">
251 251 <template v-slot:footer>
252 252 <text class="value">{{ item.salesPrice }}</text>
253 253 </template>
254 254 </uni-list-item>
255   - <uni-list-item class="amount-item" title="包装费(元/kg)">
  255 + <uni-list-item class="amount-item" :title="packagingFeeTitle">
256 256 <template v-slot:footer>
257 257 <text class="value">{{ item.packagingFee }}</text>
258 258 </template>
... ... @@ -359,12 +359,12 @@
359 359 <text v-else class="value">{{ item.supplementaryQuantity }}</text>
360 360 </template>
361 361 </uni-list-item>
362   - <uni-list-item class="amount-item" title="单价(元/kg)">
  362 + <uni-list-item class="amount-item" :title="salesPriceTitle">
363 363 <template v-slot:footer>
364 364 <text class="value">{{ item.salesPrice }}</text>
365 365 </template>
366 366 </uni-list-item>
367   - <uni-list-item class="amount-item" title="包装费(元/kg)">
  367 + <uni-list-item class="amount-item" :title="packagingFeeTitle">
368 368 <template v-slot:footer>
369 369 <text class="value">{{ item.packagingFee }}</text>
370 370 </template>
... ... @@ -439,9 +439,9 @@
439 439 </view>
440 440 <view class="row"><text class="label">需求补货数量(kg)</text><text class="value">{{ item.supplementaryQuantity
441 441 }}</text></view>
442   - <view class="row"><text class="label">单价(元/kg)</text><text class="value">{{ item.salesPrice }}</text>
  442 + <view class="row"><text class="label">{{ salesPriceTitle }}</text><text class="value">{{ item.salesPrice }}</text>
443 443 </view>
444   - <view class="row"><text class="label">包装费(元/kg)</text><text class="value">{{
  444 + <view class="row"><text class="label">{{ packagingFeeTitle }}</text><text class="value">{{
445 445 item.packagingFee }}</text></view>
446 446 <view class="row"><text class="label">生产科(车间)确认交付时间</text><text class="value">{{
447 447 item.confirmedDeliveryDate
... ... @@ -478,7 +478,8 @@ export default {
478 478 totalShippedQuantity: { type: Number, default: 0 },
479 479 totalSupplementaryQuantity: { type: Number, default: 0 },
480 480 orderDate: { type: String, default: '' },
481   - canEditSupplementary: { type: Boolean, default: false }
  481 + canEditSupplementary: { type: Boolean, default: false },
  482 + contractType: { type: String, default: '' }
482 483 },
483 484 data() {
484 485 return {
... ... @@ -503,6 +504,18 @@ export default {
503 504 const dd = String(dt.getDate()).padStart(2, '0')
504 505 return `${yy}/${mm}/${dd}`
505 506 },
  507 + isIntlContract() {
  508 + return ['INTL_STD_CONTRACT', 'INTL_INVENTORY_AGMT', 'INTL_OPEN_SPEC_AGMT'].includes(String(this.contractType || ''))
  509 + },
  510 + moneyUnit() {
  511 + return this.isIntlContract ? '美元' : '元'
  512 + },
  513 + salesPriceTitle() {
  514 + return `单价(${this.moneyUnit}/kg)`
  515 + },
  516 + packagingFeeTitle() {
  517 + return `包装费(${this.moneyUnit}/kg)`
  518 + },
506 519 // roleCodes() {
507 520 // const g = this.$store && this.$store.getters
508 521 // return (g && g.roleCodes) || [];
... ...
... ... @@ -19,6 +19,7 @@
19 19 :totalQuantity="form.totalQuantity"
20 20 :totalShippedQuantity="form.totalShippedQuantity"
21 21 :totalSupplementaryQuantity="form.totalSupplementaryQuantity"
  22 + :contractType="form.contractType"
22 23 />
23 24 </view>
24 25 </view>
... ...
... ... @@ -33,7 +33,8 @@
33 33
34 34 <!-- 产品 -->
35 35 <view class="section2">
36   - <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange" />
  36 + <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
  37 + :contractType="form.contractType" />
37 38 </view>
38 39
39 40 <view class="section">
... ...
... ... @@ -14,7 +14,8 @@
14 14
15 15 <!-- 产品 -->
16 16 <view class="mgb10">
17   - <Product mode="view" :list="form.purchaseOrderRevokeLineList" :totalQuantity="form.totalQuantity || 0" :totalRevokeQuantity="form.totalRevokeQuantity || 0"/>
  17 + <Product mode="view" :list="form.purchaseOrderRevokeLineList" :totalQuantity="form.totalQuantity || 0"
  18 + :totalRevokeQuantity="form.totalRevokeQuantity || 0" :contractType="form.contractType" />
18 19 </view>
19 20
20 21 <view class="section">
... ...
... ... @@ -32,7 +32,8 @@
32 32
33 33 <!-- 产品 -->
34 34 <view class="section2">
35   - <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange" />
  35 + <Product mode="add" :list="initPurchaseOrderLineList" @change="purchaseOrderLineListChange"
  36 + :contractType="form.contractType" />
36 37 </view>
37 38
38 39 <view class="section">
... ...
... ... @@ -53,9 +53,10 @@
53 53 <view class="row" :class="{ 'noneStyle': !item.showSalesPrice }"><text
54 54 class="label">原数量kg</text><text class="value">{{ item.quantity }}</text>
55 55 </view>
56   - <view class="row" :class="{ 'noneStyle': item.showSalesPrice }"><text class="label">销售价格</text><text
57   - class="value">{{
58   - item.salesPrice }}</text></view>
  56 + <view class="row" :class="{ 'noneStyle': item.showSalesPrice }"><text class="label">{{ salesPriceTitle }}</text><text
  57 + class="value">{{ item.salesPrice }}</text></view>
  58 + <view class="row" :class="{ 'noneStyle': item.showSalesPrice }"><text class="label">{{ packagingFeeTitle }}</text><text
  59 + class="value">{{ item.packagingFee }}</text></view>
59 60
60 61 <view class="row"><text class="label">发货日期</text><text class="value">{{ item.deliveryDate }}</text>
61 62 </view>
... ... @@ -117,7 +118,8 @@
117 118 </view>
118 119 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
119 120 <view class="row"><text class="label">原数量kg</text><text class="value">{{ item.quantity }}</text></view>
120   - <view class="row"><text class="label">销售价格</text><text class="value">{{ item.salesPrice }}</text></view>
  121 + <view class="row"><text class="label">{{ salesPriceTitle }}</text><text class="value">{{ item.salesPrice }}</text></view>
  122 + <view class="row"><text class="label">{{ packagingFeeTitle }}</text><text class="value">{{ item.packagingFee }}</text></view>
121 123 <view class="row"><text class="label">发货日期</text><text class="value">{{ item.deliveryDate }}</text>
122 124 </view>
123 125 <view class="row"><text class="label">撤销数量kg</text><text class="value">{{ item.revokeQuantity
... ... @@ -144,7 +146,8 @@ export default {
144 146 mode: { type: String, default: 'add' },
145 147 list: { type: Array, default: () => [] },
146 148 totalQuantity: { type: Number, default: 0 },
147   - totalRevokeQuantity: { type: Number, default: 0 }
  149 + totalRevokeQuantity: { type: Number, default: 0 },
  150 + contractType: { type: String, default: '' }
148 151 },
149 152 data() {
150 153 return {
... ... @@ -153,6 +156,18 @@ export default {
153 156 }
154 157 },
155 158 computed: {
  159 + isIntlContract() {
  160 + return ['INTL_STD_CONTRACT', 'INTL_INVENTORY_AGMT', 'INTL_OPEN_SPEC_AGMT'].includes(String(this.contractType || ''))
  161 + },
  162 + moneyUnit() {
  163 + return this.isIntlContract ? '美元' : '元'
  164 + },
  165 + salesPriceTitle() {
  166 + return `单价(${this.moneyUnit}/kg)`
  167 + },
  168 + packagingFeeTitle() {
  169 + return `包装费(${this.moneyUnit}/kg)`
  170 + },
156 171 },
157 172 watch: {
158 173 items: {
... ...
... ... @@ -12,7 +12,8 @@
12 12
13 13 <view class="mgb10">
14 14 <Product mode="view" :list="form.purchaseOrderRevokeLineList"
15   - :totalQuantity="form.totalQuantity || 0" :totalRevokeQuantity="form.totalRevokeQuantity || 0" />
  15 + :totalQuantity="form.totalQuantity || 0" :totalRevokeQuantity="form.totalRevokeQuantity || 0"
  16 + :contractType="form.contractType" />
16 17 </view>
17 18
18 19 <view class="section">
... ...