|
...
|
...
|
@@ -6,7 +6,7 @@ |
|
6
|
6
|
<image class="opCollapse" src="/static/images/title.png" />
|
|
7
|
7
|
<text class="title">{{ title || '产品' }}</text>
|
|
8
|
8
|
<view class="ops">
|
|
9
|
|
- <image v-if="mode === 'add'" class="opAdd" @click="onAdd" src="/static/images/plus.png" />
|
|
|
9
|
+ <!-- <image v-if="mode === 'add'" class="opAdd" @click="onAdd" src="/static/images/plus.png" /> -->
|
|
10
|
10
|
<view v-if="mode === 'view'" class="op1" @click="toggleViewCollapse">
|
|
11
|
11
|
<image class="opAdd" :src="collapsedView ? '/static/images/down.png' : '/static/images/up.png'" />
|
|
12
|
12
|
<text class="op">{{ collapsedView ? '展开' : '收起' }} </text>
|
|
...
|
...
|
@@ -18,150 +18,61 @@ |
|
18
|
18
|
<view v-if="mode === 'add'" class="section">
|
|
19
|
19
|
<view v-for="(item, idx) in items" :key="'a-' + idx" class="block">
|
|
20
|
20
|
<uni-list class="edit-list">
|
|
21
|
|
- <uni-list-item title="牌号">
|
|
|
21
|
+ <uni-list-item title="订单编号">
|
|
22
|
22
|
<template v-slot:footer>
|
|
23
|
|
- <uni-easyinput v-model="item.brand" placeholder="请输入牌号" :inputBorder="false" />
|
|
|
23
|
+ <view class="value">{{ item.orderNo }}</view>
|
|
24
|
24
|
</template>
|
|
25
|
25
|
</uni-list-item>
|
|
26
|
|
- <uni-list-item title="厚度(mm)">
|
|
|
26
|
+ <uni-list-item title="原订单计划发货日期">
|
|
27
|
27
|
<template v-slot:footer>
|
|
28
|
|
- <uni-easyinput type="digit" v-model="item.thickness" placeholder="请输入厚度"
|
|
29
|
|
- :inputBorder="false" @input="onNonNegativeNumberInput($event, item, idx, 'thickness')"
|
|
30
|
|
- @blur="onNonNegativeNumberBlur(item, idx, 'thickness')" />
|
|
|
28
|
+ <view class="value">{{ item.deliveryDate }}</view>
|
|
31
|
29
|
</template>
|
|
32
|
30
|
</uni-list-item>
|
|
33
|
|
- <uni-list-item title="厚度公差上限(mm)">
|
|
|
31
|
+ <uni-list-item title="现申请发货日期">
|
|
34
|
32
|
<template v-slot:footer>
|
|
35
|
|
- <uni-easyinput type="number" v-model="item.thicknessTolPos" placeholder="请输入厚度公差上限"
|
|
36
|
|
- :inputBorder="false" @input="onRealNumberInput($event, item, idx, 'thicknessTolPos')"
|
|
37
|
|
- @blur="onRealNumberBlur(item, idx, 'thicknessTolPos')" />
|
|
38
|
|
- </template>
|
|
39
|
|
- </uni-list-item>
|
|
40
|
|
- <uni-list-item title="厚度公差下限(mm)">
|
|
41
|
|
- <template v-slot:footer>
|
|
42
|
|
- <uni-easyinput type="number" v-model="item.thicknessTolNeg" placeholder="请输入厚度公差下限"
|
|
43
|
|
- :inputBorder="false" @input="onRealNumberInput($event, item, idx, 'thicknessTolNeg')"
|
|
44
|
|
- @blur="onRealNumberBlur(item, idx, 'thicknessTolNeg')" />
|
|
|
33
|
+ <uni-datetime-picker type="date" v-model="item.applyShipmentDate" />
|
|
45
|
34
|
</template>
|
|
46
|
35
|
</uni-list-item>
|
|
|
36
|
+
|
|
47
|
37
|
<view v-show="!item.collapsed">
|
|
48
|
|
- <uni-list-item title="宽度(mm)">
|
|
49
|
|
- <template v-slot:footer>
|
|
50
|
|
- <uni-easyinput type="digit" v-model="item.width" placeholder="请输入宽度"
|
|
51
|
|
- :inputBorder="false" @input="onNonNegativeNumberInput($event, item, idx, 'width')"
|
|
52
|
|
- @blur="onNonNegativeNumberBlur(item, idx, 'width')" />
|
|
53
|
|
- </template>
|
|
54
|
|
- </uni-list-item>
|
|
55
|
|
- <uni-list-item title="宽度公差上限(mm)">
|
|
56
|
|
- <template v-slot:footer>
|
|
57
|
|
- <uni-easyinput type="number" v-model="item.widthTolPos" placeholder="请输入宽度公差上限"
|
|
58
|
|
- :inputBorder="false" @input="onRealNumberInput($event, item, idx, 'widthTolPos')"
|
|
59
|
|
- @blur="onRealNumberBlur(item, idx, 'widthTolPos')" />
|
|
60
|
|
- </template>
|
|
61
|
|
- </uni-list-item>
|
|
62
|
|
- <uni-list-item title="宽度公差下限(mm)">
|
|
|
38
|
+ <uni-list-item title="申请次数">
|
|
63
|
39
|
<template v-slot:footer>
|
|
64
|
|
- <uni-easyinput type="number" v-model="item.widthTolNeg" placeholder="请输入宽度公差下限"
|
|
65
|
|
- :inputBorder="false" @input="onRealNumberInput($event, item, idx, 'widthTolNeg')"
|
|
66
|
|
- @blur="onRealNumberBlur(item, idx, 'widthTolNeg')" />
|
|
|
40
|
+ <view class="value">{{ item.applyCount }}</view>
|
|
67
|
41
|
</template>
|
|
68
|
42
|
</uni-list-item>
|
|
69
|
|
- <uni-list-item title="长度(mm)">
|
|
|
43
|
+ <uni-list-item title="订单类型">
|
|
70
|
44
|
<template v-slot:footer>
|
|
71
|
|
- <uni-easyinput type="digit" v-model="item.length" placeholder="请输入长度"
|
|
72
|
|
- :inputBorder="false" @input="onNonNegativeNumberInput($event, item, idx, 'length')"
|
|
73
|
|
- @blur="onNonNegativeNumberBlur(item, idx, 'length')" />
|
|
|
45
|
+ <view class="value">{{ item.orderType }}</view>
|
|
74
|
46
|
</template>
|
|
75
|
47
|
</uni-list-item>
|
|
76
|
|
- <uni-list-item title="长度公差上限(mm)">
|
|
|
48
|
+ <uni-list-item title="所属分厂">
|
|
77
|
49
|
<template v-slot:footer>
|
|
78
|
|
- <uni-easyinput type="number" v-model="item.lengthTolPos" placeholder="请输入长度公差上限"
|
|
79
|
|
- :inputBorder="false" @input="onRealNumberInput($event, item, idx, 'lengthTolPos')"
|
|
80
|
|
- @blur="onRealNumberBlur(item, idx, 'lengthTolPos')" />
|
|
|
50
|
+ <view class="value">{{ item.workshopName }}</view>
|
|
81
|
51
|
</template>
|
|
82
|
52
|
</uni-list-item>
|
|
83
|
|
- <uni-list-item title="长度公差下限(mm)">
|
|
|
53
|
+ <uni-list-item title="客户名称">
|
|
84
|
54
|
<template v-slot:footer>
|
|
85
|
|
- <uni-easyinput type="number" v-model="item.lengthTolNeg" placeholder="请输入长度公差下限"
|
|
86
|
|
- :inputBorder="false" @input="onRealNumberInput($event, item, idx, 'lengthTolNeg')"
|
|
87
|
|
- @blur="onRealNumberBlur(item, idx, 'lengthTolNeg')" />
|
|
|
55
|
+ <view class="value">{{ item.customerName }}</view>
|
|
88
|
56
|
</template>
|
|
89
|
57
|
</uni-list-item>
|
|
90
|
|
- <uni-list-item title="状态">
|
|
|
58
|
+ <uni-list-item title="发货数量">
|
|
91
|
59
|
<template v-slot:footer>
|
|
92
|
|
- <uni-easyinput v-model="item.status" placeholder="请输入状态" :inputBorder="false" />
|
|
|
60
|
+ <view class="value">{{ item.quantity }}</view>
|
|
93
|
61
|
</template>
|
|
94
|
62
|
</uni-list-item>
|
|
95
|
|
- <uni-list-item title="需发数量(kg)">
|
|
|
63
|
+ <uni-list-item title="延期原因">
|
|
96
|
64
|
<template v-slot:footer>
|
|
97
|
|
- <uni-easyinput type="digit" v-model="item.quantity" placeholder="请输入数量kg"
|
|
98
|
|
- :inputBorder="false"
|
|
99
|
|
- @input="onNonNegativeNumberInput($event, item, idx, 'quantity')"
|
|
100
|
|
- @blur="onNonNegativeNumberBlur(item, idx, 'quantity')" />
|
|
101
|
|
- </template>
|
|
102
|
|
- </uni-list-item>
|
|
103
|
|
- <uni-list-item title="实发数量(kg)">
|
|
104
|
|
- <template v-slot:footer>
|
|
105
|
|
- <uni-easyinput type="digit" v-model="item.shippedQuantity" placeholder="请输入实发数量kg"
|
|
106
|
|
- :inputBorder="false"
|
|
107
|
|
- @input="onNonNegativeNumberInput($event, item, idx, 'shippedQuantity')"
|
|
108
|
|
- @blur="onNonNegativeNumberBlur(item, idx, 'shippedQuantity')" />
|
|
109
|
|
- </template>
|
|
110
|
|
- </uni-list-item>
|
|
111
|
|
- <uni-list-item title="需求补货数量(kg)">
|
|
112
|
|
- <template v-slot:footer>
|
|
113
|
|
- <uni-easyinput type="digit" v-model="item.supplementaryQuantity"
|
|
114
|
|
- placeholder="请输入需求补货数量kg" :inputBorder="false"
|
|
115
|
|
- @input="onNonNegativeNumberInput($event, item, idx, 'supplementaryQuantity')"
|
|
116
|
|
- @blur="onNonNegativeNumberBlur(item, idx, 'supplementaryQuantity')" />
|
|
117
|
|
- </template>
|
|
118
|
|
- </uni-list-item>
|
|
119
|
|
- <uni-list-item class="amount-item">
|
|
120
|
|
- <template v-slot:body>
|
|
121
|
|
- <view class="item-title"><text>单价</text></view>
|
|
122
|
|
- </template>
|
|
123
|
|
- <template v-slot:footer>
|
|
124
|
|
- <view class="amount-row">
|
|
125
|
|
- <uni-easyinput type="digit" v-model="item.salesPrice" placeholder="0.00"
|
|
126
|
|
- :inputBorder="false"
|
|
127
|
|
- @input="onNonNegativeNumberInput($event, item, idx, 'salesPrice')"
|
|
128
|
|
- @blur="onNonNegativeNumberBlur(item, idx, 'salesPrice')" />
|
|
129
|
|
- <text class="unit">元</text>
|
|
130
|
|
- </view>
|
|
131
|
|
- </template>
|
|
132
|
|
- </uni-list-item>
|
|
133
|
|
- <uni-list-item class="amount-item">
|
|
134
|
|
- <template v-slot:body>
|
|
135
|
|
- <view class="item-title"><text>包装费</text></view>
|
|
136
|
|
- </template>
|
|
137
|
|
- <template v-slot:footer>
|
|
138
|
|
- <view class="amount-row">
|
|
139
|
|
- <uni-easyinput type="digit" v-model="item.packagingFee" placeholder="0.00"
|
|
140
|
|
- :inputBorder="false"
|
|
141
|
|
- @input="onNonNegativeNumberInput($event, item, idx, 'packagingFee')"
|
|
142
|
|
- @blur="onNonNegativeNumberBlur(item, idx, 'packagingFee')" />
|
|
143
|
|
- <text class="unit">元</text>
|
|
144
|
|
- </view>
|
|
145
|
|
- </template>
|
|
146
|
|
- </uni-list-item>
|
|
147
|
|
- <uni-list-item title="生产科(车间)确认交付时间">
|
|
148
|
|
- <template v-slot:footer>
|
|
149
|
|
- <view class="value">{{ item.confirmedDeliveryDate }}</view>
|
|
150
|
|
- </template>
|
|
151
|
|
- </uni-list-item>
|
|
152
|
|
- <uni-list-item title="备注">
|
|
153
|
|
- <template v-slot:footer>
|
|
154
|
|
- <uni-easyinput v-model="item.remarks" placeholder="请输入备注" :inputBorder="false" />
|
|
|
65
|
+ <uni-easyinput v-model="item.delayReason" placeholder="请输入延期原因" :inputBorder="false" />
|
|
155
|
66
|
</template>
|
|
156
|
67
|
</uni-list-item>
|
|
157
|
68
|
</view>
|
|
158
|
69
|
</uni-list>
|
|
159
|
70
|
|
|
160
|
71
|
<view class="block-ops">
|
|
161
|
|
- <div class="del" @click="onRemove(item.purchaseOrderId)">
|
|
|
72
|
+ <!-- <div class="del" @click="onRemove(item.purchaseOrderId)">
|
|
162
|
73
|
<image src="/static/images/delete.png" class="icon" />
|
|
163
|
74
|
删除
|
|
164
|
|
- </div>
|
|
|
75
|
+ </div> -->
|
|
165
|
76
|
<div class="toggle" @click="toggleItem(idx)">
|
|
166
|
77
|
<image :src="item.collapsed ? '/static/images/up.png' : '/static/images/down.png'"
|
|
167
|
78
|
class="icon" />
|
|
...
|
...
|
@@ -177,13 +88,13 @@ |
|
177
|
88
|
<view class="row"><text class="label">原订单计划发货日期</text><text class="value">{{ item.deliveryDate }}</text>
|
|
178
|
89
|
</view>
|
|
179
|
90
|
<view class="row"><text class="label">现申请发货日期</text><text class="value">{{ item.applyShipmentDate
|
|
180
|
|
- }}</text>
|
|
|
91
|
+ }}</text>
|
|
181
|
92
|
</view>
|
|
182
|
93
|
<view class="row"><text class="label">申请次数</text><text class="value">{{ item.applyCount
|
|
183
|
|
- }}</text>
|
|
|
94
|
+ }}</text>
|
|
184
|
95
|
</view>
|
|
185
|
96
|
<view class="row"><text class="label">订单类型</text><text class="value">{{ item.orderType
|
|
186
|
|
- }}</text></view>
|
|
|
97
|
+ }}</text></view>
|
|
187
|
98
|
<view class="row"><text class="label">所属分厂</text><text class="value">{{ item.workshopName }}</text>
|
|
188
|
99
|
</view>
|
|
189
|
100
|
<view class="row"><text class="label">客户名称</text><text class="value">{{
|
...
|
...
|
|