Showing
27 changed files
with
98 additions
and
79 deletions
| @@ -517,7 +517,7 @@ export default { | @@ -517,7 +517,7 @@ export default { | ||
| 517 | openRelate(fieldKey) { | 517 | openRelate(fieldKey) { |
| 518 | let config = {} | 518 | let config = {} |
| 519 | if (fieldKey === 'buyer') { | 519 | if (fieldKey === 'buyer') { |
| 520 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 520 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 521 | } else if (fieldKey === 'stockUpCompanyId') { | 521 | } else if (fieldKey === 'stockUpCompanyId') { |
| 522 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 522 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 523 | } | 523 | } |
| @@ -588,7 +588,7 @@ export default { | @@ -588,7 +588,7 @@ export default { | ||
| 588 | uni.showToast({ title: '新增成功', icon: 'none' }) | 588 | uni.showToast({ title: '新增成功', icon: 'none' }) |
| 589 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_std/index' }) }, 400) | 589 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_std/index' }) }, 400) |
| 590 | } catch (e) { | 590 | } catch (e) { |
| 591 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 591 | + uni.showToast({ title: e.msg ||'提交失败', icon: 'none' }) |
| 592 | } | 592 | } |
| 593 | }, | 593 | }, |
| 594 | validateRequired() { | 594 | validateRequired() { |
| @@ -472,7 +472,7 @@ export default { | @@ -472,7 +472,7 @@ export default { | ||
| 472 | } | 472 | } |
| 473 | 473 | ||
| 474 | .label { | 474 | .label { |
| 475 | - width: 280rpx; | 475 | + width: 310rpx; |
| 476 | color: rgba(0, 0, 0, 0.6); | 476 | color: rgba(0, 0, 0, 0.6); |
| 477 | font-size: 28rpx; | 477 | font-size: 28rpx; |
| 478 | } | 478 | } |
| @@ -541,7 +541,7 @@ export default { | @@ -541,7 +541,7 @@ export default { | ||
| 541 | } | 541 | } |
| 542 | 542 | ||
| 543 | .label1 { | 543 | .label1 { |
| 544 | - width: 280rpx; | 544 | + width: 310rpx; |
| 545 | color: rgba(0, 0, 0, 0.6); | 545 | color: rgba(0, 0, 0, 0.6); |
| 546 | font-size: 32rpx; | 546 | font-size: 32rpx; |
| 547 | } | 547 | } |
| @@ -457,7 +457,7 @@ export default { | @@ -457,7 +457,7 @@ export default { | ||
| 457 | openRelate(fieldKey) { | 457 | openRelate(fieldKey) { |
| 458 | let config = {} | 458 | let config = {} |
| 459 | if (fieldKey === 'buyer') { | 459 | if (fieldKey === 'buyer') { |
| 460 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 460 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 461 | } else if (fieldKey === 'stockUpCompanyId') { | 461 | } else if (fieldKey === 'stockUpCompanyId') { |
| 462 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 462 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 463 | } | 463 | } |
| @@ -562,7 +562,7 @@ export default { | @@ -562,7 +562,7 @@ export default { | ||
| 562 | uni.showToast({ title: '保存成功', icon: 'none' }) | 562 | uni.showToast({ title: '保存成功', icon: 'none' }) |
| 563 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_std/index' }) }, 400) | 563 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_std/index' }) }, 400) |
| 564 | } catch (e) { | 564 | } catch (e) { |
| 565 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 565 | + uni.showToast({ title: e.msg ||'提交失败', icon: 'none' }) |
| 566 | } | 566 | } |
| 567 | } | 567 | } |
| 568 | } | 568 | } |
| @@ -521,7 +521,7 @@ export default { | @@ -521,7 +521,7 @@ export default { | ||
| 521 | openRelate(fieldKey) { | 521 | openRelate(fieldKey) { |
| 522 | let config = {} | 522 | let config = {} |
| 523 | if (fieldKey === 'buyer') { | 523 | if (fieldKey === 'buyer') { |
| 524 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 524 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 525 | } else if (fieldKey === 'stockUpCompanyId') { | 525 | } else if (fieldKey === 'stockUpCompanyId') { |
| 526 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 526 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 527 | } | 527 | } |
| @@ -592,7 +592,7 @@ export default { | @@ -592,7 +592,7 @@ export default { | ||
| 592 | uni.showToast({ title: '新增成功', icon: 'none' }) | 592 | uni.showToast({ title: '新增成功', icon: 'none' }) |
| 593 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_stock/index' }) }, 400) | 593 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_stock/index' }) }, 400) |
| 594 | } catch (e) { | 594 | } catch (e) { |
| 595 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 595 | + uni.showToast({ title: e.msg ||'提交失败', icon: 'none' }) |
| 596 | } | 596 | } |
| 597 | }, | 597 | }, |
| 598 | validateRequired() { | 598 | validateRequired() { |
| @@ -4,13 +4,19 @@ | @@ -4,13 +4,19 @@ | ||
| 4 | <view class="detail-page"> | 4 | <view class="detail-page"> |
| 5 | <view class="section"> | 5 | <view class="section"> |
| 6 | <text class="row customer">{{ detail.code }}</text> | 6 | <text class="row customer">{{ detail.code }}</text> |
| 7 | + <view class="row" v-if="detail.status === 'STANDARD'"> | ||
| 8 | + <text class="label">标准合同规范性审核状态</text> | ||
| 9 | + <text class="value"> | ||
| 10 | + <span class="info-status" :style="detail.standardApprovedName ? getStatusCss(detail.standardApprovedName) : ''" >{{ detail.standardApprovedName || '-' }}</span> | ||
| 11 | + </text> | ||
| 12 | + </view> | ||
| 7 | <view class="row" v-if="detail.status === 'STANDARD' || detail.status === 'FORMAL'"> | 13 | <view class="row" v-if="detail.status === 'STANDARD' || detail.status === 'FORMAL'"> |
| 8 | - <text class="label">{{ detail.status === 'STANDARD' ? '标准合同' : '正式合同' }}规范性审核状态</text> | 14 | + <text class="label">正式合同规范性审核状态</text> |
| 9 | <text class="value"> | 15 | <text class="value"> |
| 10 | - <span v-if="detail.status === 'STANDARD'" class="info-status" :style="detail.standardApprovedName ? getStatusCss(detail.standardApprovedName) : ''" >{{ detail.standardApprovedName || '-' }}</span> | ||
| 11 | - <span v-if="detail.status === 'FORMAL'" class="info-status" :style="detail.formalApprovedName ? getStatusCss(detail.formalApprovedName) : ''" >{{ detail.formalApprovedName || '-' }}</span> | 16 | + <span class="info-status" :style="detail.formalApprovedName ? getStatusCss(detail.formalApprovedName) : ''" >{{ detail.formalApprovedName || '-' }}</span> |
| 12 | </text> | 17 | </text> |
| 13 | - </view> | 18 | + </view> |
| 19 | + | ||
| 14 | <view v-if="detail.status === 'STANDARD'" :class="['status', `status_${detail.shippingStatusName}`]" /> | 20 | <view v-if="detail.status === 'STANDARD'" :class="['status', `status_${detail.shippingStatusName}`]" /> |
| 15 | <view class="row"><text class="label">供方</text><text class="value">{{ detail.supplierName || '-' | 21 | <view class="row"><text class="label">供方</text><text class="value">{{ detail.supplierName || '-' |
| 16 | }}</text></view> | 22 | }}</text></view> |
| @@ -558,7 +564,7 @@ export default { | @@ -558,7 +564,7 @@ export default { | ||
| 558 | } | 564 | } |
| 559 | 565 | ||
| 560 | .label { | 566 | .label { |
| 561 | - width: 280rpx; | 567 | + width: 310rpx; |
| 562 | color: rgba(0, 0, 0, 0.6); | 568 | color: rgba(0, 0, 0, 0.6); |
| 563 | font-size: 28rpx; | 569 | font-size: 28rpx; |
| 564 | } | 570 | } |
| @@ -627,7 +633,7 @@ export default { | @@ -627,7 +633,7 @@ export default { | ||
| 627 | } | 633 | } |
| 628 | 634 | ||
| 629 | .label1 { | 635 | .label1 { |
| 630 | - width: 280rpx; | 636 | + width: 310rpx; |
| 631 | color: rgba(0, 0, 0, 0.6); | 637 | color: rgba(0, 0, 0, 0.6); |
| 632 | font-size: 32rpx; | 638 | font-size: 32rpx; |
| 633 | } | 639 | } |
| @@ -363,8 +363,8 @@ export default { | @@ -363,8 +363,8 @@ export default { | ||
| 363 | setTimeout(() => { | 363 | setTimeout(() => { |
| 364 | uni.navigateTo({ url: '/pages/contract_foreign_stock/index' }) | 364 | uni.navigateTo({ url: '/pages/contract_foreign_stock/index' }) |
| 365 | }, 500) | 365 | }, 500) |
| 366 | - }).catch(() => { | ||
| 367 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 366 | + }).catch((err) => { |
| 367 | + uni.showToast({ title: err.msg ||'提交失败', icon: 'none' }) | ||
| 368 | }) | 368 | }) |
| 369 | } | 369 | } |
| 370 | } | 370 | } |
| @@ -462,7 +462,7 @@ export default { | @@ -462,7 +462,7 @@ export default { | ||
| 462 | openRelate(fieldKey) { | 462 | openRelate(fieldKey) { |
| 463 | let config = {} | 463 | let config = {} |
| 464 | if (fieldKey === 'buyer') { | 464 | if (fieldKey === 'buyer') { |
| 465 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 465 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 466 | } else if (fieldKey === 'stockUpCompanyId') { | 466 | } else if (fieldKey === 'stockUpCompanyId') { |
| 467 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 467 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 468 | } | 468 | } |
| @@ -565,7 +565,7 @@ export default { | @@ -565,7 +565,7 @@ export default { | ||
| 565 | uni.showToast({ title: '保存成功', icon: 'none' }) | 565 | uni.showToast({ title: '保存成功', icon: 'none' }) |
| 566 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_stock/index' }) }, 400) | 566 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_stock/index' }) }, 400) |
| 567 | } catch (e) { | 567 | } catch (e) { |
| 568 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 568 | + uni.showToast({ title: e.msg ||'提交失败', icon: 'none' }) |
| 569 | } | 569 | } |
| 570 | } | 570 | } |
| 571 | } | 571 | } |
| @@ -518,7 +518,7 @@ export default { | @@ -518,7 +518,7 @@ export default { | ||
| 518 | openRelate(fieldKey) { | 518 | openRelate(fieldKey) { |
| 519 | let config = {} | 519 | let config = {} |
| 520 | if (fieldKey === 'buyer') { | 520 | if (fieldKey === 'buyer') { |
| 521 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 521 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 522 | } else if (fieldKey === 'stockUpCompanyId') { | 522 | } else if (fieldKey === 'stockUpCompanyId') { |
| 523 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 523 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 524 | } | 524 | } |
| @@ -590,7 +590,7 @@ export default { | @@ -590,7 +590,7 @@ export default { | ||
| 590 | uni.showToast({ title: '新增成功', icon: 'none' }) | 590 | uni.showToast({ title: '新增成功', icon: 'none' }) |
| 591 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_unplan/index' }) }, 400) | 591 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_unplan/index' }) }, 400) |
| 592 | } catch (e) { | 592 | } catch (e) { |
| 593 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 593 | + uni.showToast({ title: e.msg ||'新增失败', icon: 'none' }) |
| 594 | } | 594 | } |
| 595 | }, | 595 | }, |
| 596 | validateRequired() { | 596 | validateRequired() { |
| @@ -4,15 +4,19 @@ | @@ -4,15 +4,19 @@ | ||
| 4 | <view class="detail-page"> | 4 | <view class="detail-page"> |
| 5 | <view class="section"> | 5 | <view class="section"> |
| 6 | <text class="row customer">{{ detail.code }}</text> | 6 | <text class="row customer">{{ detail.code }}</text> |
| 7 | + <view class="row" v-if="detail.status === 'STANDARD'"> | ||
| 8 | + <text class="label">标准合同规范性审核状态</text> | ||
| 9 | + <text class="value"> | ||
| 10 | + <span class="info-status" :style="detail.standardApprovedName ? getStatusCss(detail.standardApprovedName) : ''" >{{ detail.standardApprovedName || '-' }}</span> | ||
| 11 | + </text> | ||
| 12 | + </view> | ||
| 7 | <view class="row" v-if="detail.status === 'STANDARD' || detail.status === 'FORMAL'"> | 13 | <view class="row" v-if="detail.status === 'STANDARD' || detail.status === 'FORMAL'"> |
| 8 | - <text class="label">{{ detail.status === 'STANDARD' ? '标准合同' : '正式合同' }}规范性审核状态</text> | 14 | + <text class="label">正式合同规范性审核状态</text> |
| 9 | <text class="value"> | 15 | <text class="value"> |
| 10 | - | ||
| 11 | - <span v-if="detail.status === 'STANDARD'" class="info-status" :style="detail.standardApprovedName ? getStatusCss(detail.standardApprovedName) : ''" >{{ detail.standardApprovedName || '-' }}</span> | ||
| 12 | - <span v-if="detail.status === 'FORMAL'" class="info-status" :style="detail.formalApprovedName ? getStatusCss(detail.formalApprovedName) : ''" >{{ detail.formalApprovedName || '-' }}</span> | ||
| 13 | - | 16 | + <span class="info-status" :style="detail.formalApprovedName ? getStatusCss(detail.formalApprovedName) : ''" >{{ detail.formalApprovedName || '-' }}</span> |
| 14 | </text> | 17 | </text> |
| 15 | - </view> | 18 | + </view> |
| 19 | + | ||
| 16 | <view v-if="detail.status === 'STANDARD'" :class="['status', `status_${detail.shippingStatusName}`]" /> | 20 | <view v-if="detail.status === 'STANDARD'" :class="['status', `status_${detail.shippingStatusName}`]" /> |
| 17 | <view class="row"><text class="label">供方</text><text class="value">{{ detail.supplierName || '-' | 21 | <view class="row"><text class="label">供方</text><text class="value">{{ detail.supplierName || '-' |
| 18 | }}</text></view> | 22 | }}</text></view> |
| @@ -572,7 +576,7 @@ export default { | @@ -572,7 +576,7 @@ export default { | ||
| 572 | } | 576 | } |
| 573 | 577 | ||
| 574 | .label { | 578 | .label { |
| 575 | - width: 280rpx; | 579 | + width: 310rpx; |
| 576 | color: rgba(0, 0, 0, 0.6); | 580 | color: rgba(0, 0, 0, 0.6); |
| 577 | font-size: 28rpx; | 581 | font-size: 28rpx; |
| 578 | } | 582 | } |
| @@ -641,7 +645,7 @@ export default { | @@ -641,7 +645,7 @@ export default { | ||
| 641 | } | 645 | } |
| 642 | 646 | ||
| 643 | .label1 { | 647 | .label1 { |
| 644 | - width: 280rpx; | 648 | + width: 310rpx; |
| 645 | color: rgba(0, 0, 0, 0.6); | 649 | color: rgba(0, 0, 0, 0.6); |
| 646 | font-size: 32rpx; | 650 | font-size: 32rpx; |
| 647 | } | 651 | } |
| @@ -363,8 +363,8 @@ export default { | @@ -363,8 +363,8 @@ export default { | ||
| 363 | setTimeout(() => { | 363 | setTimeout(() => { |
| 364 | uni.navigateTo({ url: '/pages/contract_foreign_unplan/index' }) | 364 | uni.navigateTo({ url: '/pages/contract_foreign_unplan/index' }) |
| 365 | }, 500) | 365 | }, 500) |
| 366 | - }).catch(() => { | ||
| 367 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 366 | + }).catch((err) => { |
| 367 | + uni.showToast({ title: err.msg ||'提交失败', icon: 'none' }) | ||
| 368 | }) | 368 | }) |
| 369 | } | 369 | } |
| 370 | } | 370 | } |
| @@ -461,7 +461,7 @@ export default { | @@ -461,7 +461,7 @@ export default { | ||
| 461 | openRelate(fieldKey) { | 461 | openRelate(fieldKey) { |
| 462 | let config = {} | 462 | let config = {} |
| 463 | if (fieldKey === 'buyer') { | 463 | if (fieldKey === 'buyer') { |
| 464 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 464 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 465 | } else if (fieldKey === 'stockUpCompanyId') { | 465 | } else if (fieldKey === 'stockUpCompanyId') { |
| 466 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 466 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 467 | } | 467 | } |
| @@ -564,7 +564,7 @@ export default { | @@ -564,7 +564,7 @@ export default { | ||
| 564 | uni.showToast({ title: '保存成功', icon: 'none' }) | 564 | uni.showToast({ title: '保存成功', icon: 'none' }) |
| 565 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_unplan/index' }) }, 400) | 565 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_foreign_unplan/index' }) }, 400) |
| 566 | } catch (e) { | 566 | } catch (e) { |
| 567 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 567 | + uni.showToast({ title: e.msg ||'提交失败', icon: 'none' }) |
| 568 | } | 568 | } |
| 569 | } | 569 | } |
| 570 | } | 570 | } |
| @@ -200,8 +200,8 @@ export default { | @@ -200,8 +200,8 @@ export default { | ||
| 200 | uni.showToast({ title: '已提交', icon: 'none' }) | 200 | uni.showToast({ title: '已提交', icon: 'none' }) |
| 201 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_framework/index' }) }, 800) | 201 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_framework/index' }) }, 800) |
| 202 | }) | 202 | }) |
| 203 | - .catch(() => { | ||
| 204 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 203 | + .catch((err) => { |
| 204 | + uni.showToast({ title: err.msg ||'提交失败', icon: 'none' }) | ||
| 205 | }) | 205 | }) |
| 206 | }, | 206 | }, |
| 207 | validateRequired() { | 207 | validateRequired() { |
| @@ -522,7 +522,7 @@ export default { | @@ -522,7 +522,7 @@ export default { | ||
| 522 | openRelate(fieldKey) { | 522 | openRelate(fieldKey) { |
| 523 | let config = {} | 523 | let config = {} |
| 524 | if (fieldKey === 'buyer') { | 524 | if (fieldKey === 'buyer') { |
| 525 | - config = { title: '定作方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 525 | + config = { title: '定作方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 526 | } else if (fieldKey === 'stockUpCompanyId') { | 526 | } else if (fieldKey === 'stockUpCompanyId') { |
| 527 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 527 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 528 | } | 528 | } |
| @@ -598,7 +598,7 @@ export default { | @@ -598,7 +598,7 @@ export default { | ||
| 598 | uni.showToast({ title: '新增成功', icon: 'none' }) | 598 | uni.showToast({ title: '新增成功', icon: 'none' }) |
| 599 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_process/index' }) }, 400) | 599 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_process/index' }) }, 400) |
| 600 | } catch (e) { | 600 | } catch (e) { |
| 601 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 601 | + uni.showToast({ title: e.msg ||'新增失败', icon: 'none' }) |
| 602 | } | 602 | } |
| 603 | }, | 603 | }, |
| 604 | validateRequired() { | 604 | validateRequired() { |
| @@ -455,7 +455,7 @@ export default { | @@ -455,7 +455,7 @@ export default { | ||
| 455 | } | 455 | } |
| 456 | 456 | ||
| 457 | .label { | 457 | .label { |
| 458 | - width: 280rpx; | 458 | + width: 310rpx; |
| 459 | color: rgba(0, 0, 0, 0.6); | 459 | color: rgba(0, 0, 0, 0.6); |
| 460 | font-size: 28rpx; | 460 | font-size: 28rpx; |
| 461 | } | 461 | } |
| @@ -511,7 +511,7 @@ export default { | @@ -511,7 +511,7 @@ export default { | ||
| 511 | } | 511 | } |
| 512 | 512 | ||
| 513 | .label1 { | 513 | .label1 { |
| 514 | - width: 280rpx; | 514 | + width: 310rpx; |
| 515 | color: rgba(0, 0, 0, 0.6); | 515 | color: rgba(0, 0, 0, 0.6); |
| 516 | font-size: 32rpx; | 516 | font-size: 32rpx; |
| 517 | } | 517 | } |
| @@ -441,7 +441,7 @@ export default { | @@ -441,7 +441,7 @@ export default { | ||
| 441 | openRelate(fieldKey) { | 441 | openRelate(fieldKey) { |
| 442 | let config = {} | 442 | let config = {} |
| 443 | if (fieldKey === 'buyer') { | 443 | if (fieldKey === 'buyer') { |
| 444 | - config = { title: '定作方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 444 | + config = { title: '定作方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 445 | } | 445 | } |
| 446 | const selectedKeys = this.form[fieldKey] ? [this.form[fieldKey]] : [] | 446 | const selectedKeys = this.form[fieldKey] ? [this.form[fieldKey]] : [] |
| 447 | this.sheet.visible = false | 447 | this.sheet.visible = false |
| @@ -536,7 +536,7 @@ export default { | @@ -536,7 +536,7 @@ export default { | ||
| 536 | uni.showToast({ title: '保存成功', icon: 'none' }) | 536 | uni.showToast({ title: '保存成功', icon: 'none' }) |
| 537 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_process/index' }) }, 400) | 537 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_process/index' }) }, 400) |
| 538 | } catch (e) { | 538 | } catch (e) { |
| 539 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 539 | + uni.showToast({ title: e.msg ||'提交失败', icon: 'none' }) |
| 540 | } | 540 | } |
| 541 | } | 541 | } |
| 542 | } | 542 | } |
| @@ -515,7 +515,7 @@ export default { | @@ -515,7 +515,7 @@ export default { | ||
| 515 | openRelate(fieldKey) { | 515 | openRelate(fieldKey) { |
| 516 | let config = {} | 516 | let config = {} |
| 517 | if (fieldKey === 'buyer') { | 517 | if (fieldKey === 'buyer') { |
| 518 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 518 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 519 | } else if (fieldKey === 'stockUpCompanyId') { | 519 | } else if (fieldKey === 'stockUpCompanyId') { |
| 520 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 520 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 521 | } | 521 | } |
| @@ -552,7 +552,7 @@ export default { | @@ -552,7 +552,7 @@ export default { | ||
| 552 | async onSubmit() { | 552 | async onSubmit() { |
| 553 | if (!this.validateRequired()) return | 553 | if (!this.validateRequired()) return |
| 554 | const confirmRes = await new Promise(resolve => { | 554 | const confirmRes = await new Promise(resolve => { |
| 555 | - uni.showModal({ title: '提示', content: '确定新增经销未锁规合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) | 555 | + uni.showModal({ title: '提示', content: '确定新增经销标准合同吗?', confirmText: '确定', cancelText: '取消', success: resolve }) |
| 556 | }) | 556 | }) |
| 557 | if (!(confirmRes && confirmRes.confirm)) return | 557 | if (!(confirmRes && confirmRes.confirm)) return |
| 558 | const clean = (obj) => { | 558 | const clean = (obj) => { |
| @@ -586,7 +586,7 @@ export default { | @@ -586,7 +586,7 @@ export default { | ||
| 586 | uni.showToast({ title: '新增成功', icon: 'none' }) | 586 | uni.showToast({ title: '新增成功', icon: 'none' }) |
| 587 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_retail/index' }) }, 400) | 587 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_retail/index' }) }, 400) |
| 588 | } catch (e) { | 588 | } catch (e) { |
| 589 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 589 | + uni.showToast({ title: e.msg ||'新增失败', icon: 'none' }) |
| 590 | } | 590 | } |
| 591 | }, | 591 | }, |
| 592 | validateRequired() { | 592 | validateRequired() { |
| @@ -632,6 +632,13 @@ export default { | @@ -632,6 +632,13 @@ export default { | ||
| 632 | } | 632 | } |
| 633 | 633 | ||
| 634 | </script> | 634 | </script> |
| 635 | +<style> | ||
| 636 | +/* 强制提升日历层级,解决被 footer 遮挡问题 */ | ||
| 637 | +.uni-calendar--mask, | ||
| 638 | +.uni-calendar--fixed { | ||
| 639 | + z-index: 9999 !important; | ||
| 640 | +} | ||
| 641 | +</style> | ||
| 635 | <style lang="scss" scoped> | 642 | <style lang="scss" scoped> |
| 636 | .total { | 643 | .total { |
| 637 | .total-text { | 644 | .total-text { |
| @@ -746,11 +753,6 @@ export default { | @@ -746,11 +753,6 @@ export default { | ||
| 746 | color: rgba(0, 0, 0, 0.9); | 753 | color: rgba(0, 0, 0, 0.9); |
| 747 | } | 754 | } |
| 748 | 755 | ||
| 749 | -.scroll { | ||
| 750 | - flex: 1; | ||
| 751 | - padding: 12rpx 0 160rpx; | ||
| 752 | -} | ||
| 753 | - | ||
| 754 | .quality { | 756 | .quality { |
| 755 | background-color: #fff; | 757 | background-color: #fff; |
| 756 | display: flex; | 758 | display: flex; |
| @@ -471,7 +471,7 @@ export default { | @@ -471,7 +471,7 @@ export default { | ||
| 471 | } | 471 | } |
| 472 | 472 | ||
| 473 | .label { | 473 | .label { |
| 474 | - width: 280rpx; | 474 | + width: 310rpx; |
| 475 | color: rgba(0, 0, 0, 0.6); | 475 | color: rgba(0, 0, 0, 0.6); |
| 476 | font-size: 28rpx; | 476 | font-size: 28rpx; |
| 477 | } | 477 | } |
| @@ -485,7 +485,7 @@ export default { | @@ -485,7 +485,7 @@ export default { | ||
| 485 | } | 485 | } |
| 486 | 486 | ||
| 487 | .label1 { | 487 | .label1 { |
| 488 | - width: 280rpx; | 488 | + width: 310rpx; |
| 489 | color: rgba(0, 0, 0, 0.6); | 489 | color: rgba(0, 0, 0, 0.6); |
| 490 | font-size: 32rpx; | 490 | font-size: 32rpx; |
| 491 | } | 491 | } |
| @@ -454,7 +454,7 @@ export default { | @@ -454,7 +454,7 @@ export default { | ||
| 454 | openRelate(fieldKey) { | 454 | openRelate(fieldKey) { |
| 455 | let config = {} | 455 | let config = {} |
| 456 | if (fieldKey === 'buyer') { | 456 | if (fieldKey === 'buyer') { |
| 457 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 457 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 458 | } else if (fieldKey === 'stockUpCompanyId') { | 458 | } else if (fieldKey === 'stockUpCompanyId') { |
| 459 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 459 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 460 | } | 460 | } |
| @@ -558,7 +558,7 @@ export default { | @@ -558,7 +558,7 @@ export default { | ||
| 558 | uni.showToast({ title: '保存成功', icon: 'none' }) | 558 | uni.showToast({ title: '保存成功', icon: 'none' }) |
| 559 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_retail/index' }) }, 400) | 559 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_retail/index' }) }, 400) |
| 560 | } catch (e) { | 560 | } catch (e) { |
| 561 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 561 | + uni.showToast({ title: e.msg ||'提交失败', icon: 'none' }) |
| 562 | } | 562 | } |
| 563 | } | 563 | } |
| 564 | } | 564 | } |
| @@ -512,7 +512,7 @@ export default { | @@ -512,7 +512,7 @@ export default { | ||
| 512 | openRelate(fieldKey) { | 512 | openRelate(fieldKey) { |
| 513 | let config = {} | 513 | let config = {} |
| 514 | if (fieldKey === 'buyer') { | 514 | if (fieldKey === 'buyer') { |
| 515 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 515 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 516 | } else if (fieldKey === 'stockUpCompanyId') { | 516 | } else if (fieldKey === 'stockUpCompanyId') { |
| 517 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 517 | config = { title: '备货单位/人(生产标准)', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 518 | } | 518 | } |
| @@ -583,7 +583,7 @@ export default { | @@ -583,7 +583,7 @@ export default { | ||
| 583 | uni.showToast({ title: '新增成功', icon: 'none' }) | 583 | uni.showToast({ title: '新增成功', icon: 'none' }) |
| 584 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_stock/index' }) }, 400) | 584 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_stock/index' }) }, 400) |
| 585 | } catch (e) { | 585 | } catch (e) { |
| 586 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 586 | + uni.showToast({ title: e.msg ||'新增失败', icon: 'none' }) |
| 587 | } | 587 | } |
| 588 | }, | 588 | }, |
| 589 | validateRequired() { | 589 | validateRequired() { |
| @@ -4,15 +4,18 @@ | @@ -4,15 +4,18 @@ | ||
| 4 | <view class="detail-page"> | 4 | <view class="detail-page"> |
| 5 | <view class="section"> | 5 | <view class="section"> |
| 6 | <text class="row customer">{{ detail.code }}</text> | 6 | <text class="row customer">{{ detail.code }}</text> |
| 7 | + <view class="row" v-if="detail.status === 'STANDARD'"> | ||
| 8 | + <text class="label">标准合同规范性审核状态</text> | ||
| 9 | + <text class="value"> | ||
| 10 | + <span class="info-status" :style="detail.standardApprovedName ? getStatusCss(detail.standardApprovedName) : ''" >{{ detail.standardApprovedName || '-' }}</span> | ||
| 11 | + </text> | ||
| 12 | + </view> | ||
| 7 | <view class="row" v-if="detail.status === 'STANDARD' || detail.status === 'FORMAL'"> | 13 | <view class="row" v-if="detail.status === 'STANDARD' || detail.status === 'FORMAL'"> |
| 8 | - <text class="label">{{ detail.status === 'STANDARD' ? '标准合同' : '正式合同' }}规范性审核状态</text> | 14 | + <text class="label">正式合同规范性审核状态</text> |
| 9 | <text class="value"> | 15 | <text class="value"> |
| 10 | - | ||
| 11 | - <span v-if="detail.status === 'STANDARD'" class="info-status" :style="detail.standardApprovedName ? getStatusCss(detail.standardApprovedName) : ''" >{{ detail.standardApprovedName || '-' }}</span> | ||
| 12 | - <span v-if="detail.status === 'FORMAL'" class="info-status" :style="detail.formalApprovedName ? getStatusCss(detail.formalApprovedName) : ''" >{{ detail.formalApprovedName || '-' }}</span> | ||
| 13 | - | 16 | + <span class="info-status" :style="detail.formalApprovedName ? getStatusCss(detail.formalApprovedName) : ''" >{{ detail.formalApprovedName || '-' }}</span> |
| 14 | </text> | 17 | </text> |
| 15 | - </view> | 18 | + </view> |
| 16 | <view v-if="detail.status === 'STANDARD'" :class="['status', `status_${detail.shippingStatusName}`]" /> | 19 | <view v-if="detail.status === 'STANDARD'" :class="['status', `status_${detail.shippingStatusName}`]" /> |
| 17 | <view class="row"><text class="label">供方</text><text class="value">{{ detail.supplierName || '-' | 20 | <view class="row"><text class="label">供方</text><text class="value">{{ detail.supplierName || '-' |
| 18 | }}</text></view> | 21 | }}</text></view> |
| @@ -535,7 +538,7 @@ export default { | @@ -535,7 +538,7 @@ export default { | ||
| 535 | } | 538 | } |
| 536 | 539 | ||
| 537 | .label { | 540 | .label { |
| 538 | - width: 280rpx; | 541 | + width: 310rpx; |
| 539 | color: rgba(0, 0, 0, 0.6); | 542 | color: rgba(0, 0, 0, 0.6); |
| 540 | font-size: 28rpx; | 543 | font-size: 28rpx; |
| 541 | } | 544 | } |
| @@ -591,7 +594,7 @@ export default { | @@ -591,7 +594,7 @@ export default { | ||
| 591 | } | 594 | } |
| 592 | 595 | ||
| 593 | .label1 { | 596 | .label1 { |
| 594 | - width: 280rpx; | 597 | + width: 310rpx; |
| 595 | color: rgba(0, 0, 0, 0.6); | 598 | color: rgba(0, 0, 0, 0.6); |
| 596 | font-size: 32rpx; | 599 | font-size: 32rpx; |
| 597 | } | 600 | } |
| @@ -363,8 +363,8 @@ export default { | @@ -363,8 +363,8 @@ export default { | ||
| 363 | setTimeout(() => { | 363 | setTimeout(() => { |
| 364 | uni.navigateTo({ url: '/pages/contract_stock/index' }) | 364 | uni.navigateTo({ url: '/pages/contract_stock/index' }) |
| 365 | }, 500) | 365 | }, 500) |
| 366 | - }).catch(() => { | ||
| 367 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 366 | + }).catch((err) => { |
| 367 | + uni.showToast({ title: err.msg ||'提交失败', icon: 'none' }) | ||
| 368 | }) | 368 | }) |
| 369 | } | 369 | } |
| 370 | } | 370 | } |
| @@ -456,7 +456,7 @@ export default { | @@ -456,7 +456,7 @@ export default { | ||
| 456 | openRelate(fieldKey) { | 456 | openRelate(fieldKey) { |
| 457 | let config = {} | 457 | let config = {} |
| 458 | if (fieldKey === 'buyer') { | 458 | if (fieldKey === 'buyer') { |
| 459 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 459 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 460 | } | 460 | } |
| 461 | const selectedKeys = this.form[fieldKey] ? [this.form[fieldKey]] : [] | 461 | const selectedKeys = this.form[fieldKey] ? [this.form[fieldKey]] : [] |
| 462 | this.sheet.visible = false | 462 | this.sheet.visible = false |
| @@ -550,7 +550,7 @@ export default { | @@ -550,7 +550,7 @@ export default { | ||
| 550 | uni.showToast({ title: '保存成功', icon: 'none' }) | 550 | uni.showToast({ title: '保存成功', icon: 'none' }) |
| 551 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_stock/index' }) }, 400) | 551 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_stock/index' }) }, 400) |
| 552 | } catch (e) { | 552 | } catch (e) { |
| 553 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 553 | + uni.showToast({ title: e.msg ||'提交失败', icon: 'none' }) |
| 554 | } | 554 | } |
| 555 | } | 555 | } |
| 556 | } | 556 | } |
| @@ -517,7 +517,7 @@ export default { | @@ -517,7 +517,7 @@ export default { | ||
| 517 | openRelate(fieldKey) { | 517 | openRelate(fieldKey) { |
| 518 | let config = {} | 518 | let config = {} |
| 519 | if (fieldKey === 'buyer') { | 519 | if (fieldKey === 'buyer') { |
| 520 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 520 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 521 | } | 521 | } |
| 522 | const selectedKeys = this.form[fieldKey] ? [this.form[fieldKey]] : [] | 522 | const selectedKeys = this.form[fieldKey] ? [this.form[fieldKey]] : [] |
| 523 | this.sheet.visible = false | 523 | this.sheet.visible = false |
| @@ -576,7 +576,7 @@ export default { | @@ -576,7 +576,7 @@ export default { | ||
| 576 | uni.showToast({ title: '新增成功', icon: 'none' }) | 576 | uni.showToast({ title: '新增成功', icon: 'none' }) |
| 577 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_unplan/index' }) }, 400) | 577 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_unplan/index' }) }, 400) |
| 578 | } catch (e) { | 578 | } catch (e) { |
| 579 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 579 | + uni.showToast({ title: e.msg ||'新增失败', icon: 'none' }) |
| 580 | } | 580 | } |
| 581 | }, | 581 | }, |
| 582 | validateRequired() { | 582 | validateRequired() { |
| @@ -4,13 +4,16 @@ | @@ -4,13 +4,16 @@ | ||
| 4 | <view class="detail-page"> | 4 | <view class="detail-page"> |
| 5 | <view class="section"> | 5 | <view class="section"> |
| 6 | <text class="row customer">{{ detail.code }}</text> | 6 | <text class="row customer">{{ detail.code }}</text> |
| 7 | + <view class="row" v-if="detail.status === 'STANDARD'"> | ||
| 8 | + <text class="label">标准合同规范性审核状态</text> | ||
| 9 | + <text class="value"> | ||
| 10 | + <span class="info-status" :style="detail.standardApprovedName ? getStatusCss(detail.standardApprovedName) : ''" >{{ detail.standardApprovedName || '-' }}</span> | ||
| 11 | + </text> | ||
| 12 | + </view> | ||
| 7 | <view class="row" v-if="detail.status === 'STANDARD' || detail.status === 'FORMAL'"> | 13 | <view class="row" v-if="detail.status === 'STANDARD' || detail.status === 'FORMAL'"> |
| 8 | - <text class="label">{{ detail.status === 'STANDARD' ? '标准合同' : '正式合同' }}规范性审核状态</text> | 14 | + <text class="label">正式合同规范性审核状态</text> |
| 9 | <text class="value"> | 15 | <text class="value"> |
| 10 | - | ||
| 11 | - <span v-if="detail.status === 'STANDARD'" class="info-status" :style="detail.standardApprovedName ? getStatusCss(detail.standardApprovedName) : ''" >{{ detail.standardApprovedName || '-' }}</span> | ||
| 12 | - <span v-if="detail.status === 'FORMAL'" class="info-status" :style="detail.formalApprovedName ? getStatusCss(detail.formalApprovedName) : ''" >{{ detail.formalApprovedName || '-' }}</span> | ||
| 13 | - | 16 | + <span class="info-status" :style="detail.formalApprovedName ? getStatusCss(detail.formalApprovedName) : ''" >{{ detail.formalApprovedName || '-' }}</span> |
| 14 | </text> | 17 | </text> |
| 15 | </view> | 18 | </view> |
| 16 | <view v-if="detail.status === 'STANDARD'" :class="['status', `status_${detail.shippingStatusName}`]" /> | 19 | <view v-if="detail.status === 'STANDARD'" :class="['status', `status_${detail.shippingStatusName}`]" /> |
| @@ -555,7 +558,7 @@ export default { | @@ -555,7 +558,7 @@ export default { | ||
| 555 | } | 558 | } |
| 556 | 559 | ||
| 557 | .label { | 560 | .label { |
| 558 | - width: 280rpx; | 561 | + width: 310rpx; |
| 559 | color: rgba(0, 0, 0, 0.6); | 562 | color: rgba(0, 0, 0, 0.6); |
| 560 | font-size: 28rpx; | 563 | font-size: 28rpx; |
| 561 | } | 564 | } |
| @@ -624,7 +627,7 @@ export default { | @@ -624,7 +627,7 @@ export default { | ||
| 624 | } | 627 | } |
| 625 | 628 | ||
| 626 | .label1 { | 629 | .label1 { |
| 627 | - width: 280rpx; | 630 | + width: 310rpx; |
| 628 | color: rgba(0, 0, 0, 0.6); | 631 | color: rgba(0, 0, 0, 0.6); |
| 629 | font-size: 32rpx; | 632 | font-size: 32rpx; |
| 630 | } | 633 | } |
| @@ -363,8 +363,8 @@ export default { | @@ -363,8 +363,8 @@ export default { | ||
| 363 | setTimeout(() => { | 363 | setTimeout(() => { |
| 364 | uni.navigateTo({ url: '/pages/contract_unplan/index' }) | 364 | uni.navigateTo({ url: '/pages/contract_unplan/index' }) |
| 365 | }, 500) | 365 | }, 500) |
| 366 | - }).catch(() => { | ||
| 367 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 366 | + }).catch((err) => { |
| 367 | + uni.showToast({ title: err.msg ||'提交失败', icon: 'none' }) | ||
| 368 | }) | 368 | }) |
| 369 | } | 369 | } |
| 370 | } | 370 | } |
| @@ -453,7 +453,7 @@ export default { | @@ -453,7 +453,7 @@ export default { | ||
| 453 | openRelate(fieldKey) { | 453 | openRelate(fieldKey) { |
| 454 | let config = {} | 454 | let config = {} |
| 455 | if (fieldKey === 'buyer') { | 455 | if (fieldKey === 'buyer') { |
| 456 | - config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '姓名', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } | 456 | + config = { title: '需方', source: 'customer', rowKey: 'id', multiple: false, display: [{ label: '名称', field: 'name' }, { label: '编号', field: 'code' }, { label: '状态', field: 'available', format: v => (v ? '启用' : '停用') }] } |
| 457 | } | 457 | } |
| 458 | const selectedKeys = this.form[fieldKey] ? [this.form[fieldKey]] : [] | 458 | const selectedKeys = this.form[fieldKey] ? [this.form[fieldKey]] : [] |
| 459 | this.sheet.visible = false | 459 | this.sheet.visible = false |
| @@ -550,7 +550,7 @@ export default { | @@ -550,7 +550,7 @@ export default { | ||
| 550 | uni.showToast({ title: '保存成功', icon: 'none' }) | 550 | uni.showToast({ title: '保存成功', icon: 'none' }) |
| 551 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_unplan/index' }) }, 400) | 551 | setTimeout(() => { uni.redirectTo({ url: '/pages/contract_unplan/index' }) }, 400) |
| 552 | } catch (e) { | 552 | } catch (e) { |
| 553 | - uni.showToast({ title: '提交失败', icon: 'none' }) | 553 | + uni.showToast({ title: e.msg ||'提交失败', icon: 'none' }) |
| 554 | } | 554 | } |
| 555 | } | 555 | } |
| 556 | } | 556 | } |
| @@ -146,6 +146,7 @@ export default { | @@ -146,6 +146,7 @@ export default { | ||
| 146 | displayButtons() { | 146 | displayButtons() { |
| 147 | const s = Number(this.form && this.form.status || 0) | 147 | const s = Number(this.form && this.form.status || 0) |
| 148 | const t = this.todoType || ''; | 148 | const t = this.todoType || ''; |
| 149 | + console.log('s', s, 't', t) | ||
| 149 | return [ | 150 | return [ |
| 150 | { ...this.buttons[0], visible: (s === 3 && t === '' && this.$auth.hasPermi('customer-dev-manage:customer-dev-plan:modify')) }, | 151 | { ...this.buttons[0], visible: (s === 3 && t === '' && this.$auth.hasPermi('customer-dev-manage:customer-dev-plan:modify')) }, |
| 151 | { ...this.buttons[1], visible: this.$auth.hasPermi('customer-dev-manage:customer-dev-plan:reviewDetail') }, | 152 | { ...this.buttons[1], visible: this.$auth.hasPermi('customer-dev-manage:customer-dev-plan:reviewDetail') }, |