Commit 194a0f56435d5737d1fe365e2afa5c051f652ae7

Authored by 史婷婷
1 parent 910c487d

feat: 订货单优化

@@ -53,15 +53,3 @@ export function cancelApi(id) { @@ -53,15 +53,3 @@ export function cancelApi(id) {
53 contentType: ContentTypeEnum.FORM_URLENCODED 53 contentType: ContentTypeEnum.FORM_URLENCODED
54 }) 54 })
55 } 55 }
56 -  
57 -// 确认变更  
58 -export function confirmApi(id) {  
59 - return request({  
60 - url: `${baseUrl}/confirm`,  
61 - method: 'get',  
62 - params: {  
63 - id,  
64 - },  
65 - contentType: ContentTypeEnum.FORM_URLENCODED  
66 - })  
67 -}  
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 19
20 <!-- 产品 --> 20 <!-- 产品 -->
21 <view class="mgb10"> 21 <view class="mgb10">
22 - <Product mode="view" :options="genderOptions" :list="form.purchaseOrderLineList" :totalQuantity="form.totalQuantity || '-'" /> 22 + <Product mode="view" :options="genderOptions" :list="form.purchaseOrderLineList" :totalQuantity="form.totalQuantity" />
23 </view> 23 </view>
24 24
25 <view class="section"> 25 <view class="section">
@@ -96,11 +96,11 @@ export default { @@ -96,11 +96,11 @@ export default {
96 isAudit: e === 'AUDIT', 96 isAudit: e === 'AUDIT',
97 canExamine: !!this.showExamine, 97 canExamine: !!this.showExamine,
98 canDeliveryApply: s === 'ISSUED', 98 canDeliveryApply: s === 'ISSUED',
99 - contractCreateBy: !!(this.form && this.form.contractCreateBy) 99 + contractCreateBy: this.form.contractCreateBy
100 } 100 }
101 }, 101 },
102 displayButtons() { 102 displayButtons() {
103 - const f = this.statusFlags 103 + const f = this.statusFlags;
104 return [ 104 return [
105 { ...this.buttons[0], visible: f.isRefuse && f.contractCreateBy }, 105 { ...this.buttons[0], visible: f.isRefuse && f.contractCreateBy },
106 { ...this.buttons[1], visible: !f.isRefuse }, 106 { ...this.buttons[1], visible: !f.isRefuse },
@@ -149,7 +149,7 @@ export default { @@ -149,7 +149,7 @@ export default {
149 list: { type: Array, default: () => [] }, 149 list: { type: Array, default: () => [] },
150 max: { type: Number, default: 8 }, 150 max: { type: Number, default: 8 },
151 options: { type: Array, default: () => [] }, 151 options: { type: Array, default: () => [] },
152 - totalQuantity: { type: String, default: '' } 152 + totalQuantity: { type: Number, default: 0 }
153 }, 153 },
154 data() { 154 data() {
155 return { 155 return {