Commit 194a0f56435d5737d1fe365e2afa5c051f652ae7

Authored by 史婷婷
1 parent 910c487d

feat: 订货单优化

... ... @@ -53,15 +53,3 @@ export function cancelApi(id) {
53 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   -}
\ No newline at end of file
... ...
... ... @@ -19,7 +19,7 @@
19 19
20 20 <!-- 产品 -->
21 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 23 </view>
24 24
25 25 <view class="section">
... ... @@ -96,11 +96,11 @@ export default {
96 96 isAudit: e === 'AUDIT',
97 97 canExamine: !!this.showExamine,
98 98 canDeliveryApply: s === 'ISSUED',
99   - contractCreateBy: !!(this.form && this.form.contractCreateBy)
  99 + contractCreateBy: this.form.contractCreateBy
100 100 }
101 101 },
102 102 displayButtons() {
103   - const f = this.statusFlags
  103 + const f = this.statusFlags;
104 104 return [
105 105 { ...this.buttons[0], visible: f.isRefuse && f.contractCreateBy },
106 106 { ...this.buttons[1], visible: !f.isRefuse },
... ...
... ... @@ -149,7 +149,7 @@ export default {
149 149 list: { type: Array, default: () => [] },
150 150 max: { type: Number, default: 8 },
151 151 options: { type: Array, default: () => [] },
152   - totalQuantity: { type: String, default: '' }
  152 + totalQuantity: { type: Number, default: 0 }
153 153 },
154 154 data() {
155 155 return {
... ...