Commit 8d1e5c532ce53f1b1dd45e287805edc4097fec68

Authored by 严涛
1 parent f771c609

合同模块添加物料编码

@@ -102,6 +102,11 @@ @@ -102,6 +102,11 @@
102 placeholder="请输入长度公差(单项-)" /> 102 placeholder="请输入长度公差(单项-)" />
103 </template> 103 </template>
104 </uni-list-item> 104 </uni-list-item>
  105 + <uni-list-item title="物料编码">
  106 + <template v-slot:footer>
  107 + <uni-easyinput v-model="item.materialCode" :inputBorder="false" placeholder="请输入物料编码" />
  108 + </template>
  109 + </uni-list-item>
105 <uni-list-item title="状态"> 110 <uni-list-item title="状态">
106 <template v-slot:footer> 111 <template v-slot:footer>
107 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" /> 112 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" />
@@ -179,6 +184,7 @@ @@ -179,6 +184,7 @@
179 </view> 184 </view>
180 </view> 185 </view>
181 </view> 186 </view>
  187 + <view class="row"><text class="label">物料编码</text><text class="value">{{ item.materialCode }}</text></view>
182 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> 188 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
183 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> 189 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view>
184 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) 190 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice)
@@ -246,7 +252,7 @@ export default { @@ -246,7 +252,7 @@ export default {
246 }, 252 },
247 methods: { 253 methods: {
248 defaultItem() { 254 defaultItem() {
249 - return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', status: '', quantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '' } 255 + return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', materialCode: '', status: '', quantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '' }
250 }, 256 },
251 onImmediateChange(idx) { 257 onImmediateChange(idx) {
252 this.$nextTick(() => this.recalculate(idx)) 258 this.$nextTick(() => this.recalculate(idx))
@@ -102,6 +102,11 @@ @@ -102,6 +102,11 @@
102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" /> 102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" />
103 </template> 103 </template>
104 </uni-list-item> 104 </uni-list-item>
  105 + <uni-list-item title="物料编码">
  106 + <template v-slot:footer>
  107 + <uni-easyinput v-model="item.materialCode" :inputBorder="false" placeholder="请输入物料编码" />
  108 + </template>
  109 + </uni-list-item>
105 <uni-list-item title="状态"> 110 <uni-list-item title="状态">
106 <template v-slot:footer> 111 <template v-slot:footer>
107 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" /> 112 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" />
@@ -190,6 +195,7 @@ @@ -190,6 +195,7 @@
190 </view> 195 </view>
191 </view> 196 </view>
192 </view> 197 </view>
  198 + <view class="row"><text class="label">物料编码</text><text class="value">{{ item.materialCode }}</text></view>
193 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> 199 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
194 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> 200 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view>
195 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) 201 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice)
@@ -271,7 +277,7 @@ export default { @@ -271,7 +277,7 @@ export default {
271 }, 277 },
272 methods: { 278 methods: {
273 defaultItem() { 279 defaultItem() {
274 - return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', status: '', quantity: '', unitPrice: '', processingFee: undefined, totalAmount: 0, deliveryDate: '', sampleOrder: false } 280 + return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', materialCode: '', status: '', quantity: '', unitPrice: '', processingFee: undefined, totalAmount: 0, deliveryDate: '', sampleOrder: false }
275 }, 281 },
276 onNonNegativeInput(idx, field) { 282 onNonNegativeInput(idx, field) {
277 const it = this.items[idx] 283 const it = this.items[idx]
@@ -74,6 +74,11 @@ @@ -74,6 +74,11 @@
74 </view> 74 </view>
75 </template> 75 </template>
76 </uni-list-item> 76 </uni-list-item>
  77 + <uni-list-item title="物料编码">
  78 + <template v-slot:footer>
  79 + <uni-easyinput v-model="item.materialCode" placeholder="请输入物料编码" :clearable="false" disabled />
  80 + </template>
  81 + </uni-list-item>
77 <uni-list-item title="状态"> 82 <uni-list-item title="状态">
78 <template v-slot:footer> 83 <template v-slot:footer>
79 <uni-easyinput v-model="item.status" placeholder="请输入状态" :clearable="false" disabled /> 84 <uni-easyinput v-model="item.status" placeholder="请输入状态" :clearable="false" disabled />
@@ -248,6 +253,7 @@ export default { @@ -248,6 +253,7 @@ export default {
248 length: v.length || '', 253 length: v.length || '',
249 lengthTolPos: v.lengthTolPos || '', 254 lengthTolPos: v.lengthTolPos || '',
250 lengthTolNeg: v.lengthTolNeg || '', 255 lengthTolNeg: v.lengthTolNeg || '',
  256 + materialCode: v.materialCode || '',
251 status: v.status || '', 257 status: v.status || '',
252 quantity: v.productQuantity || v.quantity || '', 258 quantity: v.productQuantity || v.quantity || '',
253 unitPrice: v.unitPrice || '', 259 unitPrice: v.unitPrice || '',
@@ -104,6 +104,11 @@ @@ -104,6 +104,11 @@
104 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" /> 104 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" />
105 </template> 105 </template>
106 </uni-list-item> 106 </uni-list-item>
  107 + <uni-list-item title="物料编码">
  108 + <template v-slot:footer>
  109 + <uni-easyinput v-model="item.materialCode" :inputBorder="false" placeholder="请输入物料编码" />
  110 + </template>
  111 + </uni-list-item>
107 <uni-list-item title="状态"> 112 <uni-list-item title="状态">
108 <template v-slot:footer> 113 <template v-slot:footer>
109 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" /> 114 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" />
@@ -192,6 +197,7 @@ @@ -192,6 +197,7 @@
192 </view> 197 </view>
193 </view> 198 </view>
194 </view> 199 </view>
  200 + <view class="row"><text class="label">物料编码</text><text class="value">{{ item.materialCode }}</text></view>
195 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> 201 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
196 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> 202 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view>
197 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) 203 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice)
@@ -273,7 +279,7 @@ export default { @@ -273,7 +279,7 @@ export default {
273 }, 279 },
274 methods: { 280 methods: {
275 defaultItem() { 281 defaultItem() {
276 - return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', status: '', quantity: '', unitPrice: '', processingFee: undefined, totalAmount: 0, deliveryDate: '', sampleOrder: false } 282 + return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', materialCode: '', status: '', quantity: '', unitPrice: '', processingFee: undefined, totalAmount: 0, deliveryDate: '', sampleOrder: false }
277 }, 283 },
278 onNonNegativeInput(idx, field) { 284 onNonNegativeInput(idx, field) {
279 const it = this.items[idx] 285 const it = this.items[idx]
@@ -73,6 +73,11 @@ @@ -73,6 +73,11 @@
73 </view> 73 </view>
74 </template> 74 </template>
75 </uni-list-item> 75 </uni-list-item>
  76 + <uni-list-item title="物料编码">
  77 + <template v-slot:footer>
  78 + <uni-easyinput v-model="item.materialCode" placeholder="请输入物料编码" :clearable="false" disabled />
  79 + </template>
  80 + </uni-list-item>
76 <uni-list-item title="状态"> 81 <uni-list-item title="状态">
77 <template v-slot:footer> 82 <template v-slot:footer>
78 <uni-easyinput v-model="item.status" placeholder="请输入状态" :clearable="false" disabled /> 83 <uni-easyinput v-model="item.status" placeholder="请输入状态" :clearable="false" disabled />
@@ -246,6 +251,7 @@ export default { @@ -246,6 +251,7 @@ export default {
246 length: v.length || '', 251 length: v.length || '',
247 lengthTolPos: v.lengthTolPos || '', 252 lengthTolPos: v.lengthTolPos || '',
248 lengthTolNeg: v.lengthTolNeg || '', 253 lengthTolNeg: v.lengthTolNeg || '',
  254 + materialCode: v.materialCode || '',
249 status: v.status || '', 255 status: v.status || '',
250 quantity: v.productQuantity || v.quantity || '', 256 quantity: v.productQuantity || v.quantity || '',
251 unitPrice: v.unitPrice || '', 257 unitPrice: v.unitPrice || '',
@@ -102,6 +102,11 @@ @@ -102,6 +102,11 @@
102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" /> 102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" />
103 </template> 103 </template>
104 </uni-list-item> 104 </uni-list-item>
  105 + <uni-list-item title="物料编码">
  106 + <template v-slot:footer>
  107 + <uni-easyinput v-model="item.materialCode" :inputBorder="false" placeholder="请输入物料编码" />
  108 + </template>
  109 + </uni-list-item>
105 <uni-list-item title="状态"> 110 <uni-list-item title="状态">
106 <template v-slot:footer> 111 <template v-slot:footer>
107 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" /> 112 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" />
@@ -186,6 +191,7 @@ @@ -186,6 +191,7 @@
186 </view> 191 </view>
187 </view> 192 </view>
188 </view> 193 </view>
  194 + <view class="row"><text class="label">物料编码</text><text class="value">{{ item.materialCode }}</text></view>
189 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> 195 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
190 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> 196 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view>
191 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) 197 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice)
@@ -267,7 +273,7 @@ export default { @@ -267,7 +273,7 @@ export default {
267 }, 273 },
268 methods: { 274 methods: {
269 defaultItem() { 275 defaultItem() {
270 - return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', status: '', quantity: '', unitPrice: '', totalAmount: 0, deliveryDate: '', sampleOrder: false } 276 + return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', materialCode: '', status: '', quantity: '', unitPrice: '', totalAmount: 0, deliveryDate: '', sampleOrder: false }
271 }, 277 },
272 onNonNegativeInput(idx, field) { 278 onNonNegativeInput(idx, field) {
273 const it = this.items[idx] 279 const it = this.items[idx]
@@ -134,6 +134,11 @@ @@ -134,6 +134,11 @@
134 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" /> 134 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" />
135 </template> 135 </template>
136 </uni-list-item> 136 </uni-list-item>
  137 + <uni-list-item title="物料编码">
  138 + <template v-slot:footer>
  139 + <uni-easyinput v-model="item.materialCode" :inputBorder="false" placeholder="请输入物料编码" />
  140 + </template>
  141 + </uni-list-item>
137 <uni-list-item title="定作物数量"> 142 <uni-list-item title="定作物数量">
138 <template v-slot:footer> 143 <template v-slot:footer>
139 <uni-easyinput v-model="item.productQuantity" type="digit" :inputBorder="false" placeholder="请输入数量kg" @input="onNonNegativeInput(idx, 'productQuantity')" @blur="onNonNegativeBlur(idx, 'productQuantity', 2)" /> 144 <uni-easyinput v-model="item.productQuantity" type="digit" :inputBorder="false" placeholder="请输入数量kg" @input="onNonNegativeInput(idx, 'productQuantity')" @blur="onNonNegativeBlur(idx, 'productQuantity', 2)" />
@@ -214,6 +219,7 @@ @@ -214,6 +219,7 @@
214 </view> 219 </view>
215 </view> 220 </view>
216 </view> 221 </view>
  222 + <view class="row"><text class="label">物料编码</text><text class="value">{{ item.materialCode }}</text></view>
217 <view class="row"><text class="label">定做物数量</text><text class="value">{{ item.productQuantity }}</text></view> 223 <view class="row"><text class="label">定做物数量</text><text class="value">{{ item.productQuantity }}</text></view>
218 <view class="row"><text class="label">加工费单价</text><text class="value">{{ formatCurrency(item.unitPrice) 224 <view class="row"><text class="label">加工费单价</text><text class="value">{{ formatCurrency(item.unitPrice)
219 }}</text> 225 }}</text>
@@ -310,7 +316,7 @@ export default { @@ -310,7 +316,7 @@ export default {
310 }, 316 },
311 methods: { 317 methods: {
312 defaultItem() { 318 defaultItem() {
313 - return { rawProductId: '', rawProductName: '', rawProductGradeId: '', rawProductGradeName: '', industry: '', quality: '', supplyTime: '', materialProductRatio: '', materialProductRatioName: '', materialProductRatioRemarks: '', productName: '', productId: '', productGrade: '', productStatus: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', productQuantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '', sampleOrder: false } 319 + return { rawProductId: '', rawProductName: '', rawProductGradeId: '', rawProductGradeName: '', industry: '', quality: '', supplyTime: '', materialProductRatio: '', materialProductRatioName: '', materialProductRatioRemarks: '', productName: '', productId: '', productGrade: '', productStatus: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', materialCode:'', productQuantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '', sampleOrder: false }
314 }, 320 },
315 onNumberInput(idx, field) { 321 onNumberInput(idx, field) {
316 const it = this.items[idx] 322 const it = this.items[idx]
@@ -102,6 +102,11 @@ @@ -102,6 +102,11 @@
102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" /> 102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" />
103 </template> 103 </template>
104 </uni-list-item> 104 </uni-list-item>
  105 + <uni-list-item title="物料编码">
  106 + <template v-slot:footer>
  107 + <uni-easyinput v-model="item.materialCode" :inputBorder="false" placeholder="请输入物料编码" />
  108 + </template>
  109 + </uni-list-item>
105 <uni-list-item title="状态"> 110 <uni-list-item title="状态">
106 <template v-slot:footer> 111 <template v-slot:footer>
107 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" /> 112 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" />
@@ -185,6 +190,7 @@ @@ -185,6 +190,7 @@
185 </view> 190 </view>
186 </view> 191 </view>
187 </view> 192 </view>
  193 + <view class="row"><text class="label">物料编码</text><text class="value">{{ item.materialCode }}</text></view>
188 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> 194 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
189 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> 195 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view>
190 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) 196 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice)
@@ -266,7 +272,7 @@ export default { @@ -266,7 +272,7 @@ export default {
266 }, 272 },
267 methods: { 273 methods: {
268 defaultItem() { 274 defaultItem() {
269 - return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', status: '', quantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '', sampleOrder: false } 275 + return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', materialCode: '', status: '', quantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '', sampleOrder: false }
270 }, 276 },
271 onNumberInput(idx, field) { 277 onNumberInput(idx, field) {
272 const it = this.items[idx] 278 const it = this.items[idx]
@@ -69,6 +69,11 @@ @@ -69,6 +69,11 @@
69 </view> 69 </view>
70 </template> 70 </template>
71 </uni-list-item> 71 </uni-list-item>
  72 + <uni-list-item title="物料编码">
  73 + <template v-slot:footer>
  74 + <uni-easyinput v-model="item.materialCode" placeholder="请输入物料编码" :clearable="false" disabled />
  75 + </template>
  76 + </uni-list-item>
72 <uni-list-item title="状态"> 77 <uni-list-item title="状态">
73 <template v-slot:footer> 78 <template v-slot:footer>
74 <uni-easyinput v-model="item.status" placeholder="请输入状态" :clearable="false" disabled /> 79 <uni-easyinput v-model="item.status" placeholder="请输入状态" :clearable="false" disabled />
@@ -235,6 +240,7 @@ export default { @@ -235,6 +240,7 @@ export default {
235 length: v.length || '', 240 length: v.length || '',
236 lengthTolPos: v.lengthTolPos || '', 241 lengthTolPos: v.lengthTolPos || '',
237 lengthTolNeg: v.lengthTolNeg || '', 242 lengthTolNeg: v.lengthTolNeg || '',
  243 + materialCode: v.materialCode || '',
238 status: v.status || '', 244 status: v.status || '',
239 quantity: v.productQuantity || v.quantity || '', 245 quantity: v.productQuantity || v.quantity || '',
240 unitPrice: v.unitPrice || '', 246 unitPrice: v.unitPrice || '',
@@ -102,6 +102,11 @@ @@ -102,6 +102,11 @@
102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" /> 102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" />
103 </template> 103 </template>
104 </uni-list-item> 104 </uni-list-item>
  105 + <uni-list-item title="物料编码">
  106 + <template v-slot:footer>
  107 + <uni-easyinput v-model="item.materialCode" :inputBorder="false" placeholder="请输入物料编码" />
  108 + </template>
  109 + </uni-list-item>
105 <uni-list-item title="状态"> 110 <uni-list-item title="状态">
106 <template v-slot:footer> 111 <template v-slot:footer>
107 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" /> 112 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" />
@@ -185,6 +190,7 @@ @@ -185,6 +190,7 @@
185 </view> 190 </view>
186 </view> 191 </view>
187 </view> 192 </view>
  193 + <view class="row"><text class="label">物料编码</text><text class="value">{{ item.materialCode }}</text></view>
188 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> 194 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
189 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> 195 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view>
190 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) 196 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice)
@@ -371,7 +377,7 @@ export default { @@ -371,7 +377,7 @@ export default {
371 return true 377 return true
372 }, 378 },
373 defaultItem() { 379 defaultItem() {
374 - return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', status: '', quantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '', sampleOrder: false } 380 + return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', materialCode: '', status: '', quantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '', sampleOrder: false }
375 }, 381 },
376 onNonNegativeInput(idx, field) { 382 onNonNegativeInput(idx, field) {
377 const it = this.items[idx] 383 const it = this.items[idx]
@@ -68,6 +68,11 @@ @@ -68,6 +68,11 @@
68 </view> 68 </view>
69 </template> 69 </template>
70 </uni-list-item> 70 </uni-list-item>
  71 + <uni-list-item title="物料编码">
  72 + <template v-slot:footer>
  73 + <uni-easyinput v-model="item.materialCode" placeholder="请输入物料编码" :clearable="false" disabled />
  74 + </template>
  75 + </uni-list-item>
71 <uni-list-item title="状态"> 76 <uni-list-item title="状态">
72 <template v-slot:footer> 77 <template v-slot:footer>
73 <uni-easyinput v-model="item.status" placeholder="请输入状态" :clearable="false" disabled /> 78 <uni-easyinput v-model="item.status" placeholder="请输入状态" :clearable="false" disabled />
@@ -233,6 +238,7 @@ export default { @@ -233,6 +238,7 @@ export default {
233 length: v.length || '', 238 length: v.length || '',
234 lengthTolPos: v.lengthTolPos || '', 239 lengthTolPos: v.lengthTolPos || '',
235 lengthTolNeg: v.lengthTolNeg || '', 240 lengthTolNeg: v.lengthTolNeg || '',
  241 + materialCode: v.materialCode || '',
236 status: v.status || '', 242 status: v.status || '',
237 quantity: v.productQuantity || v.quantity || '', 243 quantity: v.productQuantity || v.quantity || '',
238 unitPrice: v.unitPrice || '', 244 unitPrice: v.unitPrice || '',
@@ -102,6 +102,11 @@ @@ -102,6 +102,11 @@
102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" /> 102 placeholder="请输入长度公差下限" @input="onNumberInput(idx, 'lengthTolNeg')" @blur="onNumberBlur(idx, 'lengthTolNeg', 9)" />
103 </template> 103 </template>
104 </uni-list-item> 104 </uni-list-item>
  105 + <uni-list-item title="物料编码">
  106 + <template v-slot:footer>
  107 + <uni-easyinput v-model="item.materialCode" :inputBorder="false" placeholder="请输入物料编码" />
  108 + </template>
  109 + </uni-list-item>
105 <uni-list-item title="状态"> 110 <uni-list-item title="状态">
106 <template v-slot:footer> 111 <template v-slot:footer>
107 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" /> 112 <uni-easyinput v-model="item.status" :inputBorder="false" placeholder="请输入状态" />
@@ -185,6 +190,7 @@ @@ -185,6 +190,7 @@
185 </view> 190 </view>
186 </view> 191 </view>
187 </view> 192 </view>
  193 + <view class="row"><text class="label">物料编码</text><text class="value">{{ item.materialCode }}</text></view>
188 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> 194 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
189 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> 195 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view>
190 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) 196 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice)
@@ -266,7 +272,7 @@ export default { @@ -266,7 +272,7 @@ export default {
266 }, 272 },
267 methods: { 273 methods: {
268 defaultItem() { 274 defaultItem() {
269 - return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', status: '', quantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '', sampleOrder: false } 275 + return { productId: '', productName: '', industry: '', brand: '', quality: '', thickness: '', thicknessTolPos: '', thicknessTolNeg: '', width: '', widthTolPos: '', widthTolNeg: '', length: '', lengthTolPos: '', lengthTolNeg: '', materialCode: '', status: '', quantity: '', unitPrice: '', amountExcludingTax: 0, totalAmount: 0, deliveryDate: '', sampleOrder: false }
270 }, 276 },
271 onNonNegativeInput(idx, field) { 277 onNonNegativeInput(idx, field) {
272 const it = this.items[idx] 278 const it = this.items[idx]