| | |
| | | ></up-icon> |
| | | </template> |
| | | </up-form-item> |
| | | <!-- 绑定机器 --> |
| | | <up-form-item |
| | | label="绑定机器" |
| | | prop="speculativeTradingName" |
| | | required |
| | | > |
| | | <up-input |
| | | disabled |
| | | v-model="product.speculativeTradingName" |
| | | placeholder="请输入" |
| | | /> |
| | | </up-form-item> |
| | | |
| | | <!-- 单位 --> |
| | | <up-form-item |
| | |
| | | return modelOptions.value.map(model => ({ |
| | | name: model.text, |
| | | value: model.value, |
| | | unit: model.unit |
| | | unit: model.unit, |
| | | speculativeTradingName: model.speculativeTradingName |
| | | })) |
| | | }) |
| | | |
| | |
| | | specificationModel: '', |
| | | productModelId: '', |
| | | unit: '', |
| | | speculativeTradingName: '', |
| | | taxRate: '', |
| | | taxInclusiveUnitPrice: '', |
| | | quantity: '', |
| | |
| | | text: user.model, |
| | | value: user.id, |
| | | unit: user.unit, |
| | | speculativeTradingName: user.speculativeTradingName, |
| | | })); |
| | | }); |
| | | }; |
| | | // 规格型号选择事件 |
| | | const onSpecificationSelect = (item) => { |
| | | console.log('selected item---', item); |
| | | productData.value[currentProductIndex.value].specificationModel = item.name |
| | | productData.value[currentProductIndex.value].productModelId = item.value |
| | | productData.value[currentProductIndex.value].unit = item.unit |
| | | productData.value[currentProductIndex.value].speculativeTradingName = item.speculativeTradingName |
| | | } |
| | | // 税率选择事件 |
| | | const onTaxRateSelect = (item) => { |