Showing
10 changed files
with
15 additions
and
17 deletions
| ... | ... | @@ -559,7 +559,7 @@ export default { |
| 559 | 559 | async onSubmit() { |
| 560 | 560 | if (!this.validateRequired()) return |
| 561 | 561 | const confirmRes = await new Promise(resolve => { |
| 562 | - uni.showModal({ title: '提示', content: '确定新增经销未锁规合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) | |
| 562 | + uni.showModal({ title: '提示', content: '确定新增外贸库存合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) | |
| 563 | 563 | }) |
| 564 | 564 | if (!(confirmRes && confirmRes.confirm)) return |
| 565 | 565 | const clean = (obj) => { | ... | ... |
| ... | ... | @@ -534,7 +534,7 @@ export default { |
| 534 | 534 | console.log('onSubmit__payload', payload) |
| 535 | 535 | if (!this.validateRequired()) return |
| 536 | 536 | const confirmRes = await new Promise(resolve => { |
| 537 | - uni.showModal({ title: '提示', content: '确定保存当前经销未锁规合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) | |
| 537 | + uni.showModal({ title: '提示', content: '确定保存当前外贸库存合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) | |
| 538 | 538 | }) |
| 539 | 539 | if (!(confirmRes && confirmRes.confirm)) return |
| 540 | 540 | const clean = (obj) => { | ... | ... |
| ... | ... | @@ -111,7 +111,7 @@ |
| 111 | 111 | </uni-list-item> |
| 112 | 112 | <uni-list-item title="数量"> |
| 113 | 113 | <template v-slot:footer> |
| 114 | - <uni-easyinput v-model="item.quantity" type="digit" :inputBorder="false" placeholder="请输入数量" @input="onNonNegativeInput(idx, 'quantity')" @blur="onNonNegativeBlur(idx, 'quantity', 2)" /> | |
| 114 | + <uni-easyinput v-model="item.quantity" type="digit" :inputBorder="false" placeholder="请输入数量kg" @input="onNonNegativeInput(idx, 'quantity')" @blur="onNonNegativeBlur(idx, 'quantity', 2)" /> | |
| 115 | 115 | </template> |
| 116 | 116 | </uni-list-item> |
| 117 | 117 | <uni-list-item title="单价"> | ... | ... |
| ... | ... | @@ -557,7 +557,7 @@ export default { |
| 557 | 557 | if (this.$refs.productRel && !this.$refs.productRel.validate()) return |
| 558 | 558 | if (!this.validateRequired()) return |
| 559 | 559 | const confirmRes = await new Promise(resolve => { |
| 560 | - uni.showModal({ title: '提示', content: '确定新增经销未锁规合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) | |
| 560 | + uni.showModal({ title: '提示', content: '确定新增外贸未锁规合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) | |
| 561 | 561 | }) |
| 562 | 562 | if (!(confirmRes && confirmRes.confirm)) return |
| 563 | 563 | const clean = (obj) => { | ... | ... |
| ... | ... | @@ -533,7 +533,7 @@ export default { |
| 533 | 533 | if (!this.validateRequired()) return |
| 534 | 534 | if (this.$refs.productRel && !this.$refs.productRel.validate()) return |
| 535 | 535 | const confirmRes = await new Promise(resolve => { |
| 536 | - uni.showModal({ title: '提示', content: '确定保存当前经销未锁规合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) | |
| 536 | + uni.showModal({ title: '提示', content: '确定保存当前外贸未锁规合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) | |
| 537 | 537 | }) |
| 538 | 538 | if (!(confirmRes && confirmRes.confirm)) return |
| 539 | 539 | const clean = (obj) => { | ... | ... |
| ... | ... | @@ -61,13 +61,13 @@ |
| 61 | 61 | <uni-list-item title="厚度公差上限(mm)"> |
| 62 | 62 | <template v-slot:footer> |
| 63 | 63 | <uni-easyinput type="digit" v-model="item.thicknessTolPos" :inputBorder="false" |
| 64 | - placeholder="请输入厚度公差上限" @input="onNonNegativeInput(idx, 'thicknessTolPos')" @blur="onNonNegativeBlur(idx, 'thicknessTolPos', 9)" /> | |
| 64 | + placeholder="请输入厚度公差上限" @input="onNumberInput(idx, 'thicknessTolPos')" @blur="onNumberBlur(idx, 'thicknessTolPos', 9)" /> | |
| 65 | 65 | </template> |
| 66 | 66 | </uni-list-item> |
| 67 | 67 | <uni-list-item title="厚度公差下限(mm)"> |
| 68 | 68 | <template v-slot:footer> |
| 69 | 69 | <uni-easyinput type="digit" v-model="item.thicknessTolNeg" :inputBorder="false" |
| 70 | - placeholder="请输入厚度公差下限" @input="onNonNegativeInput(idx, 'thicknessTolNeg')" @blur="onNonNegativeBlur(idx, 'thicknessTolNeg', 9)" /> | |
| 70 | + placeholder="请输入厚度公差下限" @input="onNumberInput(idx, 'thicknessTolNeg')" @blur="onNumberBlur(idx, 'thicknessTolNeg', 9)" /> | |
| 71 | 71 | </template> |
| 72 | 72 | </uni-list-item> |
| 73 | 73 | <uni-list-item title="宽度(mm)"> |
| ... | ... | @@ -77,12 +77,12 @@ |
| 77 | 77 | </uni-list-item> |
| 78 | 78 | <uni-list-item title="宽度公差上限(mm)"> |
| 79 | 79 | <template v-slot:footer> |
| 80 | - <uni-easyinput type="digit" v-model="item.widthTolPos" :inputBorder="false" placeholder="请输入宽度公差上限" @input="onNonNegativeInput(idx, 'widthTolPos')" @blur="onNonNegativeBlur(idx, 'widthTolPos', 9)" /> | |
| 80 | + <uni-easyinput type="digit" v-model="item.widthTolPos" :inputBorder="false" placeholder="请输入宽度公差上限" @input="onNumberInput(idx, 'widthTolPos')" @blur="onNumberBlur(idx, 'widthTolPos', 9)" /> | |
| 81 | 81 | </template> |
| 82 | 82 | </uni-list-item> |
| 83 | 83 | <uni-list-item title="宽度公差下限(mm)"> |
| 84 | 84 | <template v-slot:footer> |
| 85 | - <uni-easyinput type="digit" v-model="item.widthTolNeg" :inputBorder="false" placeholder="请输入宽度公差下限" @input="onNonNegativeInput(idx, 'widthTolNeg')" @blur="onNonNegativeBlur(idx, 'widthTolNeg', 9)" /> | |
| 85 | + <uni-easyinput type="digit" v-model="item.widthTolNeg" :inputBorder="false" placeholder="请输入宽度公差下限" @input="onNumberInput(idx, 'widthTolNeg')" @blur="onNumberBlur(idx, 'widthTolNeg', 9)" /> | |
| 86 | 86 | </template> |
| 87 | 87 | </uni-list-item> |
| 88 | 88 | <uni-list-item title="长度(mm)"> |
| ... | ... | @@ -93,13 +93,13 @@ |
| 93 | 93 | <uni-list-item title="长度公差上限(mm)"> |
| 94 | 94 | <template v-slot:footer> |
| 95 | 95 | <uni-easyinput type="digit" v-model="item.lengthTolPos" :inputBorder="false" |
| 96 | - placeholder="请输入长度公差上限" @input="onNonNegativeInput(idx, 'lengthTolPos')" @blur="onNonNegativeBlur(idx, 'lengthTolPos', 9)" /> | |
| 96 | + placeholder="请输入长度公差上限" @input="onNumberInput(idx, 'lengthTolPos')" @blur="onNumberBlur(idx, 'lengthTolPos', 9)" /> | |
| 97 | 97 | </template> |
| 98 | 98 | </uni-list-item> |
| 99 | 99 | <uni-list-item title="长度公差下限(mm)"> |
| 100 | 100 | <template v-slot:footer> |
| 101 | 101 | <uni-easyinput type="digit" v-model="item.lengthTolNeg" :inputBorder="false" |
| 102 | - placeholder="请输入长度公差下限" @input="onNonNegativeInput(idx, 'lengthTolNeg')" @blur="onNonNegativeBlur(idx, 'lengthTolNeg', 9)" /> | |
| 102 | + placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" /> | |
| 103 | 103 | </template> |
| 104 | 104 | </uni-list-item> |
| 105 | 105 | <uni-list-item title="状态"> |
| ... | ... | @@ -399,7 +399,7 @@ export default { |
| 399 | 399 | this.emitChange() |
| 400 | 400 | }, |
| 401 | 401 | recalculate(idx) { |
| 402 | - const TAX_RATE = 0.13 | |
| 402 | + // const TAX_RATE = 0.13 | |
| 403 | 403 | const it = this.items[idx] |
| 404 | 404 | if (!it) return |
| 405 | 405 | const qty = this.toNumber(it.quantity) | ... | ... |
| ... | ... | @@ -595,9 +595,6 @@ export default { |
| 595 | 595 | totalAmountIncludingTax: this.totalAmountIncludingTax, |
| 596 | 596 | contractStdProcessingLineList: lines.map(it => ({ |
| 597 | 597 | ...it, |
| 598 | - productId: it.rawProductId || '', | |
| 599 | - productName: it.rawProductName || '', | |
| 600 | - productGrade: it.rawProductGrade || '', | |
| 601 | 598 | })) |
| 602 | 599 | }) |
| 603 | 600 | console.log('onSubmit__payload', payload) | ... | ... |
| ... | ... | @@ -396,6 +396,7 @@ export default { |
| 396 | 396 | this.specialTermsList = c1.map(it => ({ label: it.name, value: it.code })) |
| 397 | 397 | this.executionStandardList = c2.map(it => ({ label: it.name, value: it.code })) |
| 398 | 398 | this.productList = c3.map(it => ({ label: it.name, value: it.code })) |
| 399 | + console.log('c5', c5) | |
| 399 | 400 | this.rawProductList = c5.map(it => ({ label: it.name, value: it.code })) |
| 400 | 401 | this.rawProductGradeList = c6.map(it => ({ label: it.name, value: it.code })) |
| 401 | 402 | } catch (e) { | ... | ... |
| ... | ... | @@ -291,7 +291,7 @@ export default { |
| 291 | 291 | }, |
| 292 | 292 | list: { |
| 293 | 293 | handler(v) { |
| 294 | - this.items = v.map(x => ({ ...this.defaultItem(), ...x, productName: this.selectOptions.find(o => o.value === x.productId)?.label || '', collapsed: true })) | |
| 294 | + this.items = v.map(x => ({ ...this.defaultItem(), ...x, collapsed: true })) | |
| 295 | 295 | console.log('v', v) |
| 296 | 296 | }, |
| 297 | 297 | deep: true | ... | ... |
| ... | ... | @@ -107,7 +107,7 @@ |
| 107 | 107 | <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" /> |
| 108 | 108 | </template> |
| 109 | 109 | </uni-list-item> |
| 110 | - <uni-list-item title="数量kg"> | |
| 110 | + <uni-list-item title="数量"> | |
| 111 | 111 | <template v-slot:footer> |
| 112 | 112 | <uni-easyinput v-model="item.quantity" type="digit" :inputBorder="false" placeholder="请输入数量kg" @input="onNonNegativeInput(idx, 'quantity')" @blur="onNonNegativeBlur(idx, 'quantity', 2)" /> |
| 113 | 113 | </template> | ... | ... |