Showing
6 changed files
with
51 additions
and
12 deletions
| @@ -78,8 +78,8 @@ | @@ -78,8 +78,8 @@ | ||
| 78 | </template> | 78 | </template> |
| 79 | </uni-list-item> | 79 | </uni-list-item> |
| 80 | 80 | ||
| 81 | - <!-- 点价截止日期 - 仅在 是否未点价 = 否 时显示且必填 --> | ||
| 82 | - <uni-list-item v-if="form.priced === false" class="select-item" :class="form.pricingDeadline ? 'is-filled' : 'is-empty'"> | 81 | + <!-- 点价截止日期 - 仅在 是否未点价 = 是 时显示且必填 --> |
| 82 | + <uni-list-item v-if="form.priced === true" class="select-item" :class="form.pricingDeadline ? 'is-filled' : 'is-empty'"> | ||
| 83 | <template v-slot:body> | 83 | <template v-slot:body> |
| 84 | <view class="item-title"><text class="required">*</text><text>点价截止日期</text></view> | 84 | <view class="item-title"><text class="required">*</text><text>点价截止日期</text></view> |
| 85 | </template> | 85 | </template> |
| @@ -88,6 +88,14 @@ | @@ -88,6 +88,14 @@ | ||
| 88 | </template> | 88 | </template> |
| 89 | </uni-list-item> | 89 | </uni-list-item> |
| 90 | 90 | ||
| 91 | + <!-- 是否暂定价 - 仅在 是否未点价 = 是 时显示 --> | ||
| 92 | + <uni-list-item v-if="form.priced === true" class="select-item" :class="typeof form.temporaryPrice === 'boolean' ? 'is-filled' : 'is-empty'" clickable | ||
| 93 | + @click="openSheet('temporaryPrice')" :rightText="boolText(form.temporaryPrice)" showArrow> | ||
| 94 | + <template v-slot:body> | ||
| 95 | + <view class="item-title"><text>是否暂定价</text></view> | ||
| 96 | + </template> | ||
| 97 | + </uni-list-item> | ||
| 98 | + | ||
| 91 | <!-- 其他费用凭票到厂另行结算 --> | 99 | <!-- 其他费用凭票到厂另行结算 --> |
| 92 | <uni-list-item class="select-item" :class="typeof form.otherExpenseSettlement === 'boolean' ? 'is-filled' : 'is-empty'" clickable | 100 | <uni-list-item class="select-item" :class="typeof form.otherExpenseSettlement === 'boolean' ? 'is-filled' : 'is-empty'" clickable |
| 93 | @click="openSheet('otherExpenseSettlement')" :rightText="boolText(form.otherExpenseSettlement)" showArrow> | 101 | @click="openSheet('otherExpenseSettlement')" :rightText="boolText(form.otherExpenseSettlement)" showArrow> |
| @@ -286,6 +294,7 @@ export default { | @@ -286,6 +294,7 @@ export default { | ||
| 286 | terminalCustomer: false, | 294 | terminalCustomer: false, |
| 287 | priced: true, | 295 | priced: true, |
| 288 | pricingDeadline: '', | 296 | pricingDeadline: '', |
| 297 | + temporaryPrice: null, | ||
| 289 | otherExpenseSettlement: false, | 298 | otherExpenseSettlement: false, |
| 290 | deliveryMode: '', | 299 | deliveryMode: '', |
| 291 | commodityBuyout: false, | 300 | commodityBuyout: false, |
| @@ -455,6 +464,7 @@ export default { | @@ -455,6 +464,7 @@ export default { | ||
| 455 | longTermOperation: '是否长单操作', | 464 | longTermOperation: '是否长单操作', |
| 456 | terminalCustomer: '是否终端客户', | 465 | terminalCustomer: '是否终端客户', |
| 457 | priced: '是否未点价', | 466 | priced: '是否未点价', |
| 467 | + temporaryPrice: '是否暂定价', | ||
| 458 | otherExpenseSettlement: '其他费用凭票到厂另行结算', | 468 | otherExpenseSettlement: '其他费用凭票到厂另行结算', |
| 459 | commodityBuyout: '是否通货买断', | 469 | commodityBuyout: '是否通货买断', |
| 460 | qualityBuyout: '是否质量买断', | 470 | qualityBuyout: '是否质量买断', |
| @@ -529,8 +539,8 @@ export default { | @@ -529,8 +539,8 @@ export default { | ||
| 529 | return false | 539 | return false |
| 530 | } | 540 | } |
| 531 | } | 541 | } |
| 532 | - // 点价截止日期:是否未点价=否 时必填 | ||
| 533 | - if (this.form.priced === false && !this.form.pricingDeadline) { | 542 | + // 点价截止日期:是否未点价=是 时必填 |
| 543 | + if (this.form.priced === true && !this.form.pricingDeadline) { | ||
| 534 | uni.showToast({ title: '请选择点价截止日期', icon: 'none' }) | 544 | uni.showToast({ title: '请选择点价截止日期', icon: 'none' }) |
| 535 | return false | 545 | return false |
| 536 | } | 546 | } |
| @@ -78,8 +78,8 @@ | @@ -78,8 +78,8 @@ | ||
| 78 | </template> | 78 | </template> |
| 79 | </uni-list-item> | 79 | </uni-list-item> |
| 80 | 80 | ||
| 81 | - <!-- 点价截止日期 - 仅在 是否未点价 = 否 时显示且必填 --> | ||
| 82 | - <uni-list-item v-if="form.priced === false" class="select-item" :class="form.pricingDeadline ? 'is-filled' : 'is-empty'"> | 81 | + <!-- 点价截止日期 - 仅在 是否未点价 = 是 时显示且必填 --> |
| 82 | + <uni-list-item v-if="form.priced === true" class="select-item" :class="form.pricingDeadline ? 'is-filled' : 'is-empty'"> | ||
| 83 | <template v-slot:body> | 83 | <template v-slot:body> |
| 84 | <view class="item-title"><text class="required">*</text><text>点价截止日期</text></view> | 84 | <view class="item-title"><text class="required">*</text><text>点价截止日期</text></view> |
| 85 | </template> | 85 | </template> |
| @@ -88,6 +88,14 @@ | @@ -88,6 +88,14 @@ | ||
| 88 | </template> | 88 | </template> |
| 89 | </uni-list-item> | 89 | </uni-list-item> |
| 90 | 90 | ||
| 91 | + <!-- 是否暂定价 - 仅在 是否未点价 = 是 时显示 --> | ||
| 92 | + <uni-list-item v-if="form.priced === true" class="select-item" :class="typeof form.temporaryPrice === 'boolean' ? 'is-filled' : 'is-empty'" clickable | ||
| 93 | + @click="openSheet('temporaryPrice')" :rightText="boolText(form.temporaryPrice)" showArrow> | ||
| 94 | + <template v-slot:body> | ||
| 95 | + <view class="item-title"><text>是否暂定价</text></view> | ||
| 96 | + </template> | ||
| 97 | + </uni-list-item> | ||
| 98 | + | ||
| 91 | <!-- 其他费用凭票到厂另行结算 --> | 99 | <!-- 其他费用凭票到厂另行结算 --> |
| 92 | <uni-list-item class="select-item" :class="typeof form.otherExpenseSettlement === 'boolean' ? 'is-filled' : 'is-empty'" clickable | 100 | <uni-list-item class="select-item" :class="typeof form.otherExpenseSettlement === 'boolean' ? 'is-filled' : 'is-empty'" clickable |
| 93 | @click="openSheet('otherExpenseSettlement')" :rightText="boolText(form.otherExpenseSettlement)" showArrow> | 101 | @click="openSheet('otherExpenseSettlement')" :rightText="boolText(form.otherExpenseSettlement)" showArrow> |
| @@ -286,6 +294,7 @@ export default { | @@ -286,6 +294,7 @@ export default { | ||
| 286 | terminalCustomer: false, | 294 | terminalCustomer: false, |
| 287 | priced: true, | 295 | priced: true, |
| 288 | pricingDeadline: '', | 296 | pricingDeadline: '', |
| 297 | + temporaryPrice: null, | ||
| 289 | otherExpenseSettlement: false, | 298 | otherExpenseSettlement: false, |
| 290 | deliveryMode: '', | 299 | deliveryMode: '', |
| 291 | commodityBuyout: false, | 300 | commodityBuyout: false, |
| @@ -465,6 +474,7 @@ export default { | @@ -465,6 +474,7 @@ export default { | ||
| 465 | longTermOperation: '是否长单操作', | 474 | longTermOperation: '是否长单操作', |
| 466 | terminalCustomer: '是否终端客户', | 475 | terminalCustomer: '是否终端客户', |
| 467 | priced: '是否未点价', | 476 | priced: '是否未点价', |
| 477 | + temporaryPrice: '是否暂定价', | ||
| 468 | otherExpenseSettlement: '其他费用凭票到厂另行结算', | 478 | otherExpenseSettlement: '其他费用凭票到厂另行结算', |
| 469 | commodityBuyout: '是否通货买断', | 479 | commodityBuyout: '是否通货买断', |
| 470 | qualityBuyout: '是否质量买断', | 480 | qualityBuyout: '是否质量买断', |
| @@ -538,7 +548,7 @@ export default { | @@ -538,7 +548,7 @@ export default { | ||
| 538 | return false | 548 | return false |
| 539 | } | 549 | } |
| 540 | } | 550 | } |
| 541 | - if (this.form.priced === false && !this.form.pricingDeadline) { | 551 | + if (this.form.priced === true && !this.form.pricingDeadline) { |
| 542 | uni.showToast({ title: '请选择点价截止日期', icon: 'none' }) | 552 | uni.showToast({ title: '请选择点价截止日期', icon: 'none' }) |
| 543 | return false | 553 | return false |
| 544 | } | 554 | } |
| @@ -13,7 +13,8 @@ | @@ -13,7 +13,8 @@ | ||
| 13 | <view class="row"><text class="label">是否长单操作</text><text class="value">{{ boolText(form.longTermOperation) }}</text></view> | 13 | <view class="row"><text class="label">是否长单操作</text><text class="value">{{ boolText(form.longTermOperation) }}</text></view> |
| 14 | <view class="row"><text class="label">是否终端客户</text><text class="value">{{ boolText(form.terminalCustomer) }}</text></view> | 14 | <view class="row"><text class="label">是否终端客户</text><text class="value">{{ boolText(form.terminalCustomer) }}</text></view> |
| 15 | <view class="row"><text class="label">是否未点价</text><text class="value">{{ boolText(form.priced) }}</text></view> | 15 | <view class="row"><text class="label">是否未点价</text><text class="value">{{ boolText(form.priced) }}</text></view> |
| 16 | - <view v-if="form.priced === false" class="row"><text class="label">点价截止日期</text><text class="value">{{ formatDateOnly(form.pricingDeadline) }}</text></view> | 16 | + <view v-if="form.priced === true" class="row"><text class="label">点价截止日期</text><text class="value">{{ formatDateOnly(form.pricingDeadline) }}</text></view> |
| 17 | + <view v-if="form.priced === true" class="row"><text class="label">是否暂定价</text><text class="value">{{ boolText(form.temporaryPrice) }}</text></view> | ||
| 17 | <view class="row"><text class="label">其他费用凭票到厂另行结算</text><text class="value">{{ boolText(form.otherExpenseSettlement) }}</text></view> | 18 | <view class="row"><text class="label">其他费用凭票到厂另行结算</text><text class="value">{{ boolText(form.otherExpenseSettlement) }}</text></view> |
| 18 | <view class="row"><text class="label">交提货方式</text><text class="value">{{ getDeliveryMethodLabel() }}</text></view> | 19 | <view class="row"><text class="label">交提货方式</text><text class="value">{{ getDeliveryMethodLabel() }}</text></view> |
| 19 | <view class="row"><text class="label">是否通货买断</text><text class="value">{{ boolText(form.commodityBuyout) }}</text></view> | 20 | <view class="row"><text class="label">是否通货买断</text><text class="value">{{ boolText(form.commodityBuyout) }}</text></view> |
| @@ -77,8 +77,8 @@ | @@ -77,8 +77,8 @@ | ||
| 77 | </template> | 77 | </template> |
| 78 | </uni-list-item> | 78 | </uni-list-item> |
| 79 | 79 | ||
| 80 | - <!-- 点价截止日期 - 仅在 是否未点价 = 否 时显示且必填 --> | ||
| 81 | - <uni-list-item v-if="form.priced === false" class="select-item" :class="form.pricingDeadline ? 'is-filled' : 'is-empty'"> | 80 | + <!-- 点价截止日期 - 仅在 是否未点价 = 是 时显示且必填 --> |
| 81 | + <uni-list-item v-if="form.priced === true" class="select-item" :class="form.pricingDeadline ? 'is-filled' : 'is-empty'"> | ||
| 82 | <template v-slot:body> | 82 | <template v-slot:body> |
| 83 | <view class="item-title"><text class="required">*</text><text>点价截止日期</text></view> | 83 | <view class="item-title"><text class="required">*</text><text>点价截止日期</text></view> |
| 84 | </template> | 84 | </template> |
| @@ -87,6 +87,14 @@ | @@ -87,6 +87,14 @@ | ||
| 87 | </template> | 87 | </template> |
| 88 | </uni-list-item> | 88 | </uni-list-item> |
| 89 | 89 | ||
| 90 | + <!-- 是否暂定价 - 仅在 是否未点价 = 是 时显示 --> | ||
| 91 | + <uni-list-item v-if="form.priced === true" class="select-item" :class="typeof form.temporaryPrice === 'boolean' ? 'is-filled' : 'is-empty'" clickable | ||
| 92 | + @click="openSheet('temporaryPrice')" :rightText="boolText(form.temporaryPrice)" showArrow> | ||
| 93 | + <template v-slot:body> | ||
| 94 | + <view class="item-title"><text>是否暂定价</text></view> | ||
| 95 | + </template> | ||
| 96 | + </uni-list-item> | ||
| 97 | + | ||
| 90 | <!-- 其他费用凭票到厂另行结算 --> | 98 | <!-- 其他费用凭票到厂另行结算 --> |
| 91 | <uni-list-item class="select-item" :class="typeof form.otherExpenseSettlement === 'boolean' ? 'is-filled' : 'is-empty'" clickable | 99 | <uni-list-item class="select-item" :class="typeof form.otherExpenseSettlement === 'boolean' ? 'is-filled' : 'is-empty'" clickable |
| 92 | @click="openSheet('otherExpenseSettlement')" :rightText="boolText(form.otherExpenseSettlement)" showArrow> | 100 | @click="openSheet('otherExpenseSettlement')" :rightText="boolText(form.otherExpenseSettlement)" showArrow> |
| @@ -285,6 +293,7 @@ export default { | @@ -285,6 +293,7 @@ export default { | ||
| 285 | terminalCustomer: false, | 293 | terminalCustomer: false, |
| 286 | priced: true, | 294 | priced: true, |
| 287 | pricingDeadline: '', | 295 | pricingDeadline: '', |
| 296 | + temporaryPrice: null, | ||
| 288 | otherExpenseSettlement: false, | 297 | otherExpenseSettlement: false, |
| 289 | deliveryMode: '', | 298 | deliveryMode: '', |
| 290 | commodityBuyout: false, | 299 | commodityBuyout: false, |
| @@ -446,6 +455,7 @@ export default { | @@ -446,6 +455,7 @@ export default { | ||
| 446 | longTermOperation: '是否长单操作', | 455 | longTermOperation: '是否长单操作', |
| 447 | terminalCustomer: '是否终端客户', | 456 | terminalCustomer: '是否终端客户', |
| 448 | priced: '是否未点价', | 457 | priced: '是否未点价', |
| 458 | + temporaryPrice: '是否暂定价', | ||
| 449 | otherExpenseSettlement: '其他费用凭票到厂另行结算', | 459 | otherExpenseSettlement: '其他费用凭票到厂另行结算', |
| 450 | commodityBuyout: '是否通货买断', | 460 | commodityBuyout: '是否通货买断', |
| 451 | qualityBuyout: '是否质量买断', | 461 | qualityBuyout: '是否质量买断', |
| @@ -519,7 +529,7 @@ export default { | @@ -519,7 +529,7 @@ export default { | ||
| 519 | return false | 529 | return false |
| 520 | } | 530 | } |
| 521 | } | 531 | } |
| 522 | - if (this.form.priced === false && !this.form.pricingDeadline) { | 532 | + if (this.form.priced === true && !this.form.pricingDeadline) { |
| 523 | uni.showToast({ title: '请选择点价截止日期', icon: 'none' }) | 533 | uni.showToast({ title: '请选择点价截止日期', icon: 'none' }) |
| 524 | return false | 534 | return false |
| 525 | } | 535 | } |
| @@ -45,6 +45,11 @@ | @@ -45,6 +45,11 @@ | ||
| 45 | <uni-easyinput v-model="item.applicationAttrition" type="digit" :inputBorder="false" placeholder="请输入申请损耗" @input="onNonNegativeInput(idx, 'applicationAttrition')" @blur="onNonNegativeBlur(idx, 'applicationAttrition', 2)" @change="recalcEstimatedLoss(idx)" /> | 45 | <uni-easyinput v-model="item.applicationAttrition" type="digit" :inputBorder="false" placeholder="请输入申请损耗" @input="onNonNegativeInput(idx, 'applicationAttrition')" @blur="onNonNegativeBlur(idx, 'applicationAttrition', 2)" @change="recalcEstimatedLoss(idx)" /> |
| 46 | </template> | 46 | </template> |
| 47 | </uni-list-item> | 47 | </uni-list-item> |
| 48 | + <uni-list-item title="漆损率(%)"> | ||
| 49 | + <template v-slot:footer> | ||
| 50 | + <uni-easyinput v-model="item.paint_damage_ratio" type="digit" :inputBorder="false" placeholder="请输入漆损率" @input="onNonNegativeInput(idx, 'paint_damage_ratio')" @blur="onNonNegativeBlur(idx, 'paint_damage_ratio', 2)" /> | ||
| 51 | + </template> | ||
| 52 | + </uni-list-item> | ||
| 48 | </uni-list> | 53 | </uni-list> |
| 49 | <uni-list v-show="item.collapsed"> | 54 | <uni-list v-show="item.collapsed"> |
| 50 | <uni-list-item class="select-item" :class="item.productName ? 'is-filled' : 'is-empty'" clickable @click="openProductSheet(idx)" :rightText="item.productName || '请选择品种'" showArrow> | 55 | <uni-list-item class="select-item" :class="item.productName ? 'is-filled' : 'is-empty'" clickable @click="openProductSheet(idx)" :rightText="item.productName || '请选择品种'" showArrow> |
| @@ -73,6 +78,7 @@ | @@ -73,6 +78,7 @@ | ||
| 73 | <view class="row"><text class="label">采购价</text><text class="value">{{ item.purchasePrice }}</text></view> | 78 | <view class="row"><text class="label">采购价</text><text class="value">{{ item.purchasePrice }}</text></view> |
| 74 | <view class="row"><text class="label">买断料预计损耗</text><text class="value">{{ item.estimatedLoss }}</text></view> | 79 | <view class="row"><text class="label">买断料预计损耗</text><text class="value">{{ item.estimatedLoss }}</text></view> |
| 75 | <view class="row"><text class="label">申请损耗(%)</text><text class="value">{{ item.applicationAttrition }}</text></view> | 80 | <view class="row"><text class="label">申请损耗(%)</text><text class="value">{{ item.applicationAttrition }}</text></view> |
| 81 | + <view class="row"><text class="label">漆损率(%)</text><text class="value">{{ item.paint_damage_ratio }}</text></view> | ||
| 76 | </view> | 82 | </view> |
| 77 | </view> | 83 | </view> |
| 78 | 84 | ||
| @@ -163,6 +169,7 @@ export default { | @@ -163,6 +169,7 @@ export default { | ||
| 163 | purchasePrice: '', | 169 | purchasePrice: '', |
| 164 | estimatedLoss: '', | 170 | estimatedLoss: '', |
| 165 | applicationAttrition: '', | 171 | applicationAttrition: '', |
| 172 | + paint_damage_ratio: '', | ||
| 166 | attritionRate: '' | 173 | attritionRate: '' |
| 167 | } | 174 | } |
| 168 | }, | 175 | }, |
| @@ -12,7 +12,8 @@ | @@ -12,7 +12,8 @@ | ||
| 12 | <view class="row"><text class="label">是否长单操作</text><text class="value">{{ boolText(form.longTermOperation) }}</text></view> | 12 | <view class="row"><text class="label">是否长单操作</text><text class="value">{{ boolText(form.longTermOperation) }}</text></view> |
| 13 | <view class="row"><text class="label">是否终端客户</text><text class="value">{{ boolText(form.terminalCustomer) }}</text></view> | 13 | <view class="row"><text class="label">是否终端客户</text><text class="value">{{ boolText(form.terminalCustomer) }}</text></view> |
| 14 | <view class="row"><text class="label">是否未点价</text><text class="value">{{ boolText(form.priced) }}</text></view> | 14 | <view class="row"><text class="label">是否未点价</text><text class="value">{{ boolText(form.priced) }}</text></view> |
| 15 | - <view v-if="form.priced === false" class="row"><text class="label">点价截止日期</text><text class="value">{{ formatDateOnly(form.pricingDeadline) }}</text></view> | 15 | + <view v-if="form.priced === true" class="row"><text class="label">点价截止日期</text><text class="value">{{ formatDateOnly(form.pricingDeadline) }}</text></view> |
| 16 | + <view v-if="form.priced === true" class="row"><text class="label">是否暂定价</text><text class="value">{{ boolText(form.temporaryPrice) }}</text></view> | ||
| 16 | <view class="row"><text class="label">其他费用凭票到厂另行结算</text><text class="value">{{ boolText(form.otherExpenseSettlement) }}</text></view> | 17 | <view class="row"><text class="label">其他费用凭票到厂另行结算</text><text class="value">{{ boolText(form.otherExpenseSettlement) }}</text></view> |
| 17 | <view class="row"><text class="label">交提货方式</text><text class="value">{{ getDeliveryMethodLabel() }}</text></view> | 18 | <view class="row"><text class="label">交提货方式</text><text class="value">{{ getDeliveryMethodLabel() }}</text></view> |
| 18 | <view class="row"><text class="label">是否通货买断</text><text class="value">{{ boolText(form.commodityBuyout) }}</text></view> | 19 | <view class="row"><text class="label">是否通货买断</text><text class="value">{{ boolText(form.commodityBuyout) }}</text></view> |