|
|
|
@ -13,7 +13,7 @@
|
|
|
|
|
> |
|
|
|
|
<!-- 表单字段 --> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="入库批次" prop="receiptBatch"> |
|
|
|
|
<el-form-item label="入库批次"> |
|
|
|
|
<el-input v-model="form.receiptBatch" clearable placeholder="请输入入库批次" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="入库时间" prop="receiptDate"> |
|
|
|
@ -75,7 +75,6 @@
|
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<!-- <el-form-item label="门店名称" prop="storeName">--> |
|
|
|
|
<el-form-item label="门店名称"> |
|
|
|
|
<!-- <el-input v-model="form.storeName" placeholder="请输入门店名称"/>--> |
|
|
|
|
<el-select |
|
|
|
@ -98,12 +97,16 @@
|
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="物流公司" prop="receiptBatch"> |
|
|
|
|
<el-form-item label="物流公司"> |
|
|
|
|
<el-input v-model="form.logisticsCompany" clearable placeholder="请输入物流公司" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item label="物流单号" prop="trainNumber">--> |
|
|
|
|
<el-form-item label="物流运单号"> |
|
|
|
|
<el-input v-model="form.trainNumber" clearable placeholder="请输入物流运单号" /> |
|
|
|
|
<el-input |
|
|
|
|
v-model="form.LogisticsWaybillNumber" |
|
|
|
|
clearable |
|
|
|
|
placeholder="请输入物流运单号" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<!-- <el-form-item label="入库车牌" prop="licensePlate">--> |
|
|
|
@ -137,6 +140,7 @@
|
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
:checked="store.length === 1" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -532,6 +536,7 @@ export default {
|
|
|
|
|
licensePlate: [{ required: true, message: '请填写入库车牌', trigger: 'change' }], |
|
|
|
|
warehouseId: [{ required: true, message: '请选择所在仓库', trigger: 'blur' }], |
|
|
|
|
serviceType: [{ required: true, message: '请选择服务类型', trigger: 'blur' }], |
|
|
|
|
clientCode: [{ required: true, message: '请选择客户编码', trigger: 'blur' }], |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -828,7 +833,7 @@ export default {
|
|
|
|
|
if (query) { |
|
|
|
|
// this.loading = true; |
|
|
|
|
let cl = await getListCopy(this.page.currentPage, this.page.pageSize, { name: query }); |
|
|
|
|
// console.log("仓库查询>>>>",cl.data.data.records); |
|
|
|
|
console.log('仓库查询>>>>', cl.data.data.records); |
|
|
|
|
this.store = []; |
|
|
|
|
cl.data.data.records.forEach(i => { |
|
|
|
|
let st = { |
|
|
|
@ -837,6 +842,10 @@ export default {
|
|
|
|
|
}; |
|
|
|
|
this.store.push(st); |
|
|
|
|
}); |
|
|
|
|
// 当仓库数据只有一条时, 直接数据回显 |
|
|
|
|
if (this.store.length === 1) { |
|
|
|
|
this.form.warehouseId = this.store[0].value; |
|
|
|
|
} |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.loading = false |
|
|
|
|
// this.loading = this.list.filter((item) => { |
|
|
|
@ -1213,6 +1222,10 @@ export default {
|
|
|
|
|
value: i.id, |
|
|
|
|
}; |
|
|
|
|
this.store.push(st); |
|
|
|
|
// 如果仓库只有一条数据时, 直接回显 |
|
|
|
|
if (this.store.length === 1) { |
|
|
|
|
console.log('this.store.length :>> ', [...this.store]); |
|
|
|
|
this.form.warehouseId = this.store[0].value;} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
/* if(b.data.data.deptCategory == "4"){ |
|
|
|
|