|
...
|
...
|
@@ -15,7 +15,7 @@ |
|
15
|
15
|
|
|
16
|
16
|
<!-- 产品 -->
|
|
17
|
17
|
<view class="section2">
|
|
18
|
|
- <Product mode="view" :list="form.detailList" />
|
|
|
18
|
+ <Product mode="view" :status="form.status" :list="form.detailList" />
|
|
19
|
19
|
</view>
|
|
20
|
20
|
<view class="section">
|
|
21
|
21
|
<view class="row"><text class="label">签收单据</text><text class="value act">{{ form.fileName }}</text></view>
|
|
...
|
...
|
@@ -56,7 +56,8 @@ export default { |
|
56
|
56
|
return {
|
|
57
|
57
|
form: {},
|
|
58
|
58
|
buttons: [
|
|
59
|
|
- { text: '编辑', visible: true, variant: 'outline', event: 'edit' },
|
|
|
59
|
+ // 编辑涉及到的产品-子表操作 放到详情里面
|
|
|
60
|
+ // { text: '编辑', visible: true, variant: 'outline', event: 'edit' },
|
|
60
|
61
|
{ text: '填写实发数', visible: true, variant: 'outline', event: 'fill' },
|
|
61
|
62
|
{ text: '上传签收单据', visible: true, variant: 'primary', event: 'upload' },
|
|
62
|
63
|
],
|
|
...
|
...
|
@@ -76,9 +77,9 @@ export default { |
|
76
|
77
|
displayButtons() {
|
|
77
|
78
|
const f = this.statusFlags
|
|
78
|
79
|
return [
|
|
79
|
|
- { ...this.buttons[0], visible: f.canEdit && this.$auth.hasPermi('shipping-plan-manage:invoice:modify') },
|
|
80
|
|
- { ...this.buttons[1], visible: f.canFill && this.$auth.hasPermi('shipping-plan-manage:invoice:fill') },
|
|
81
|
|
- { ...this.buttons[2], visible: f.canUpload && this.$auth.hasPermi('shipping-plan-manage:invoice:upload') },
|
|
|
80
|
+ // { ...this.buttons[0], visible: f.canEdit && this.$auth.hasPermi('shipping-plan-manage:invoice:modify') },
|
|
|
81
|
+ { ...this.buttons[0], visible: f.canFill && this.$auth.hasPermi('shipping-plan-manage:invoice:fill') },
|
|
|
82
|
+ { ...this.buttons[1], visible: f.canUpload && this.$auth.hasPermi('shipping-plan-manage:invoice:upload') },
|
|
82
|
83
|
]
|
|
83
|
84
|
}
|
|
84
|
85
|
},
|
|
...
|
...
|
@@ -98,17 +99,17 @@ export default { |
|
98
|
99
|
handleButtonClick(btn) {
|
|
99
|
100
|
if (!btn || btn.disabled) return
|
|
100
|
101
|
const map = {
|
|
101
|
|
- edit: () => this.onEdit(),
|
|
|
102
|
+ // edit: () => this.onEdit(),
|
|
102
|
103
|
fill: () => this.onFill(),
|
|
103
|
104
|
upload: () => this.onUpload(),
|
|
104
|
105
|
}
|
|
105
|
106
|
const fn = map[btn.event]
|
|
106
|
107
|
if (typeof fn === 'function') fn()
|
|
107
|
108
|
},
|
|
108
|
|
- onEdit() {
|
|
|
109
|
+ // onEdit() {
|
|
109
|
110
|
// const id = this.form.id || this.form.code
|
|
110
|
111
|
// if (id) uni.navigateTo({ url: `/pages/invoice/modify?id=${id}` })
|
|
111
|
|
- },
|
|
|
112
|
+ // },
|
|
112
|
113
|
onFill() {
|
|
113
|
114
|
const id = this.form.id || this.form.code
|
|
114
|
115
|
if (id) uni.navigateTo({ url: `/pages/invoice/fill?id=${id}` })
|
...
|
...
|
|