Commit 0a75fcfd7c53e945009a5a2a952f4adbc7ae3d80

Authored by 史婷婷
1 parent 0aed8e89

feat: 撤销单-审批&审批详情

@@ -154,7 +154,6 @@ export default { @@ -154,7 +154,6 @@ export default {
154 font-size: 36rpx; 154 font-size: 36rpx;
155 font-weight: 600; 155 font-weight: 600;
156 color: rgba(0, 0, 0, 0.9); 156 color: rgba(0, 0, 0, 0.9);
157 - padding-top: 32rpx;  
158 line-height: 50rpx; 157 line-height: 50rpx;
159 } 158 }
160 159
@@ -2,51 +2,25 @@ @@ -2,51 +2,25 @@
2 <view class="detail-page"> 2 <view class="detail-page">
3 <view class="section"> 3 <view class="section">
4 <text class="row company">{{ form.orderNo }}</text> 4 <text class="row company">{{ form.orderNo }}</text>
5 - <view class="row"><text class="label">供货单位</text><text class="value">{{ getDicName('SUPPLIER',  
6 - form.supplyUnit, dicOptions.SUPPLIER) }}</text></view>  
7 <view class="row"><text class="label">订货单位</text><text class="value">{{ form.orderingUnitName }}</text> 5 <view class="row"><text class="label">订货单位</text><text class="value">{{ form.orderingUnitName }}</text>
8 </view> 6 </view>
9 <view class="row"><text class="label">订货日期</text><text class="value">{{ form.orderDate }}</text></view> 7 <view class="row"><text class="label">订货日期</text><text class="value">{{ form.orderDate }}</text></view>
10 - <view class="row"><text class="label">生产厂</text><text class="value">{{ form.workshopName }}</text></view>  
11 - <view class="row"><text class="label">结算方式或期限</text><text class="value">{{ form.settlementTerms }}</text> 8 + <view class="row"><text class="label">申请撤单日期</text><text class="value">{{ form.documentPreparationDate }}</text></view>
  9 + <view class="row"><text class="label">所属办</text><text class="value">{{ form.deptName }}</text>
12 </view> 10 </view>
13 - <view class="row"><text class="label">交货方式</text><text class="value">{{ form.deliveryMethod }}</text></view>  
14 </view> 11 </view>
15 12
16 - <!-- 产品-变更前 -->  
17 <view class="mgb10"> 13 <view class="mgb10">
18 - <Product title="变更前" mode="view" :options="genderOptions" :list="form.beforeChangeSpecList"  
19 - :totalQuantity="form.totalQuantity || 0" />  
20 - </view>  
21 -  
22 - <!-- 产品-变更后 -->  
23 - <view class="mgb10">  
24 - <Product title="变更后" mode="view" :options="genderOptions" :list="form.afterChangeSpecList"  
25 - :totalQuantity="form.afterTotalQuantity || 0" /> 14 + <Product mode="view" :list="form.purchaseOrderRevokeLineList"
  15 + :totalQuantity="form.totalQuantity || 0" :totalRevokeQuantity="form.totalRevokeQuantity || 0" />
26 </view> 16 </view>
27 17
28 <view class="section"> 18 <view class="section">
29 - <view class="row"><text class="label">价格表编号</text><text class="value">{{ form.priceListNo }}</text></view>  
30 - <view class="row"><text class="label">开票情况</text><text class="value">{{ form.invoicingStatus }}</text></view>  
31 - <view class="row"><text class="label">运费</text><text class="value">{{ form.shippingCost }}</text></view>  
32 - <view class="row"><text class="label">包装费</text><text class="value">{{ form.packagingFee }}</text></view>  
33 - <view class="row"><text class="label">执行标准</text><text class="value">{{ getDicName('APPLICABLE_STANDARD',  
34 - form.executionStandard, dicOptions.APPLICABLE_STANDARD) }}</text></view> 19 + <view class="row"><text class="label">撤销原因</text><text class="value">{{ form.revokeReason }}</text></view>
35 </view> 20 </view>
36 21
37 - <view class="title-header">  
38 - <image class="title-header_icon" src="/static/images/title.png" />  
39 - <span>具体质量要求</span>  
40 - </view>  
41 <view class="section"> 22 <view class="section">
42 - <view class="row"><text class="label">件重条头</text><text class="value">{{ form.pieceWeightHeader }}</text>  
43 - </view>  
44 - <view class="row"><text class="label">表面</text><text class="value">{{ form.surface }}</text></view>  
45 - <view class="row"><text class="label">公差</text><text class="value">{{ form.tolerance }}</text></view>  
46 - <view class="row"><text class="label">性能</text><text class="value">{{ form.performance }}</text></view>  
47 - <view class="row"><text class="label">成分</text><text class="value">{{ form.element }}</text></view>  
48 - <view class="row"><text class="label">包装</text><text class="value">{{ form.packaging }}</text></view>  
49 - <view class="row"><text class="label">备注</text><text class="value">{{ form.remarks }}</text></view> 23 + <view class="row"><text class="label">撤销确认凭证</text><text class="value act">{{ form.confirmationVoucherFileName }}</text></view>
50 </view> 24 </view>
51 25
52 </view> 26 </view>
@@ -55,12 +29,6 @@ @@ -55,12 +29,6 @@
55 <script> 29 <script>
56 import { getDetailApi } from '@/api/revoke_list.js' 30 import { getDetailApi } from '@/api/revoke_list.js'
57 import Product from './product.vue' 31 import Product from './product.vue'
58 -import {  
59 - getDicName  
60 -} from '@/utils/dic.js'  
61 -import {  
62 - getDicByCodes  
63 -} from '@/utils/dic'  
64 32
65 export default { 33 export default {
66 name: 'RevokeListViewer', 34 name: 'RevokeListViewer',
@@ -69,15 +37,6 @@ export default { @@ -69,15 +37,6 @@ export default {
69 data() { 37 data() {
70 return { 38 return {
71 form: {}, 39 form: {},
72 - enterpriseTypeOptions: [],  
73 - genderOptions: [],  
74 - categoryOptions: [],  
75 - historyList: [],  
76 - dicOptions: {  
77 - AUDIT_STATUS: [],  
78 - SUPPLIER: [],  
79 - APPLICABLE_STANDARD: [],  
80 - },  
81 } 40 }
82 }, 41 },
83 watch: { 42 watch: {
@@ -102,21 +61,6 @@ export default { @@ -102,21 +61,6 @@ export default {
102 this.form = {} 61 this.form = {}
103 } 62 }
104 }, 63 },
105 - loadAllDicData() {  
106 - const dicCodes = ['AUDIT_STATUS', 'SUPPLIER', 'APPLICABLE_STANDARD']  
107 - return getDicByCodes(dicCodes).then(results => {  
108 - this.dicOptions.AUDIT_STATUS = results.AUDIT_STATUS.data || []  
109 - this.dicOptions.SUPPLIER = results.SUPPLIER.data || []  
110 - this.dicOptions.APPLICABLE_STANDARD = results.APPLICABLE_STANDARD.data || []  
111 - }).catch(() => {  
112 - this.dicOptions = {  
113 - AUDIT_STATUS: [],  
114 - SUPPLIER: [],  
115 - APPLICABLE_STANDARD: [],  
116 - }  
117 - })  
118 - },  
119 - getDicName: getDicName,  
120 getFormValues() { 64 getFormValues() {
121 const m = this.form || {} 65 const m = this.form || {}
122 return JSON.parse(JSON.stringify(m)) 66 return JSON.parse(JSON.stringify(m))
@@ -154,7 +98,6 @@ export default { @@ -154,7 +98,6 @@ export default {
154 font-size: 36rpx; 98 font-size: 36rpx;
155 font-weight: 600; 99 font-weight: 600;
156 color: rgba(0, 0, 0, 0.9); 100 color: rgba(0, 0, 0, 0.9);
157 - padding-top: 32rpx;  
158 line-height: 50rpx; 101 line-height: 50rpx;
159 } 102 }
160 103
@@ -6,6 +6,7 @@ import ProcessStdAgmtViewer from '@/pages/contract_process/processStdAgmtViewer. @@ -6,6 +6,7 @@ import ProcessStdAgmtViewer from '@/pages/contract_process/processStdAgmtViewer.
6 import OrderListApprove from '@/pages/order_list/approve.vue' 6 import OrderListApprove from '@/pages/order_list/approve.vue'
7 import OrderListViewer from '@/pages/order_list/viewer.vue' 7 import OrderListViewer from '@/pages/order_list/viewer.vue'
8 import ChangeListViewer from '@/pages/change_list/viewer.vue' 8 import ChangeListViewer from '@/pages/change_list/viewer.vue'
  9 +import RevokeListViewer from '@/pages/revoke_list/viewer.vue'
9 10
10 export default function registerComponents(Vue) { 11 export default function registerComponents(Vue) {
11 Vue.component('CustomerDevelopViewer', CustomerDevelopViewer) 12 Vue.component('CustomerDevelopViewer', CustomerDevelopViewer)
@@ -16,4 +17,5 @@ export default function registerComponents(Vue) { @@ -16,4 +17,5 @@ export default function registerComponents(Vue) {
16 Vue.component('OrderListApprove', OrderListApprove) 17 Vue.component('OrderListApprove', OrderListApprove)
17 Vue.component('OrderListViewer', OrderListViewer) 18 Vue.component('OrderListViewer', OrderListViewer)
18 Vue.component('ChangeListViewer', ChangeListViewer) 19 Vue.component('ChangeListViewer', ChangeListViewer)
  20 + Vue.component('RevokeListViewer', RevokeListViewer)
19 } 21 }
@@ -56,6 +56,12 @@ export const getSysFlowComponentPath = (bizFlag) => { @@ -56,6 +56,12 @@ export const getSysFlowComponentPath = (bizFlag) => {
56 case 'SPEC_CHANGE_CONFIRM_EDIT': // 规格变更单确认 56 case 'SPEC_CHANGE_CONFIRM_EDIT': // 规格变更单确认
57 componentPath = 'ChangeListViewer'; // 规格变更单-审批 57 componentPath = 'ChangeListViewer'; // 规格变更单-审批
58 break; 58 break;
  59 + case 'ORDER_CANCELLATION': // 订单撤销
  60 + componentPath = 'RevokeListViewer'; // 订单撤销-审批详情
  61 + break;
  62 + case 'ORDER_CANCELLATION_EDIT': // 订单撤销
  63 + componentPath = 'RevokeListViewer'; // 订单撤销-审批
  64 + break;
59 } 65 }
60 return componentPath; 66 return componentPath;
61 }; 67 };