Commit 1ee25581 authored by Marcus's avatar Marcus

入仓主 品牌

parent f0d3c8ff
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-descriptions-item label="中文品名">{{ warehousing.prodTitleZh }}</el-descriptions-item> <el-descriptions-item label="中文品名">{{ warehousing.prodTitleZh }}</el-descriptions-item>
<el-descriptions-item label="英文品名">{{ warehousing.prodTitleEn }}</el-descriptions-item> <el-descriptions-item label="英文品名">{{ warehousing.prodTitleEn }}</el-descriptions-item>
<el-descriptions-item label="品牌"> <el-descriptions-item label="品牌">
<span v-if="warehousing.orderWarehouseInBackItemDoList && warehousing.orderWarehouseInBackItemDoList.length">{{ brand }}</span> <span v-if="warehousing.orderWarehouseInBackItemDoList && warehousing.orderWarehouseInBackItemDoList.length">{{ form.brand || '' }}</span>
<el-select <el-select
v-else v-model="form.brand" v-else v-model="form.brand"
placeholder="可修改" placeholder="可修改"
...@@ -153,7 +153,6 @@ export default { ...@@ -153,7 +153,6 @@ export default {
getDictDataLabel, getDictDataLabel,
opened: false, opened: false,
brandList: [], brandList: [],
isBeian: '无备案',
form: { form: {
"brand": "", "brand": "",
"brandType": 0, "brandType": 0,
...@@ -187,7 +186,8 @@ export default { ...@@ -187,7 +186,8 @@ export default {
}, },
opened(val) { opened(val) {
if (val) { if (val) {
this.form.material = warehousing.material this.form.material = this.warehousing.material
this.form.brand = this.warehousing.brand
} else { } else {
this.$emit('update:visible', false) this.$emit('update:visible', false)
} }
...@@ -220,10 +220,7 @@ export default { ...@@ -220,10 +220,7 @@ export default {
// }) // })
return orderWarehouseIn({ return orderWarehouseIn({
...this.form, ...this.form,
inTime: this.form.inTime, brandType: this.form.brand ? 1 : 0,
material: this.form.material,
brand: this.brand,
brandType: this.warehousing.brandType,
orderId: this.warehousing.orderId, orderId: this.warehousing.orderId,
orderItemId: this.warehousing.orderItemId, orderItemId: this.warehousing.orderItemId,
orderNo: this.warehousing.orderNo orderNo: this.warehousing.orderNo
...@@ -246,12 +243,12 @@ export default { ...@@ -246,12 +243,12 @@ export default {
handleAdd() { handleAdd() {
this.form.orderWarehouseInItemDoList.push({ this.form.orderWarehouseInItemDoList.push({
"boxGauge": "", "boxGauge": "",
"cartonsNum": 0, "cartonsNum": "",
"expressNo": "", "expressNo": "",
"quantityAll": 0, "quantityAll": "",
"unit": "", "unit": "",
"volume": 0, "volume": '',
"weight": 0 "weight": ''
}) })
} }
}, },
...@@ -260,9 +257,8 @@ export default { ...@@ -260,9 +257,8 @@ export default {
tableData() { tableData() {
return [...this.warehousing.orderWarehouseInBackItemDoList, ...this.form.orderWarehouseInItemDoList] return [...this.warehousing.orderWarehouseInBackItemDoList, ...this.form.orderWarehouseInItemDoList]
}, },
brand(){ isBeian(){
const brand = this.brandList.find(e => e.titleZh === this.form.brand) return this.brandList.find(e => e.titleZh === this.form.brand) ? '有备案' : '无备案'
return brand?.titleZh || ''
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment