|
@@ -179,7 +179,7 @@
|
|
|
<div class="main-title">
|
|
|
<div class="title">货品信息</div>
|
|
|
<div>
|
|
|
- <el-select v-model="warehouseValue" placeholder="请选择发货仓库" size="small" style="margin-right: 10px">
|
|
|
+ <el-select v-model="warehouseValue" placeholder="请选择发货仓库" size="small" style="margin-right: 10px" @change="setStock">
|
|
|
<el-option :label="item.name" :value="item.id" v-for="(item, index) in warehouseList" :key="index"></el-option>
|
|
|
</el-select>
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="checkStock">检查库存</el-button>
|
|
@@ -273,11 +273,9 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <!-- <el-table-column align="center" label="总仓库" prop="status1" min-width="100" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>{{ scope.row.status1 | status1Filter }}</div>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
+ <el-table-column align="center" label="仓库" prop="correspondName" min-width="100" show-overflow-tooltip>
|
|
|
+
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" label="仓库状态" prop="status2" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<div>{{ status2Filter(scope.row) }}</div>
|
|
@@ -557,7 +555,19 @@ export default {
|
|
|
goBack() {
|
|
|
this.$emit('backListFormDetail');
|
|
|
},
|
|
|
+ setStock(id){
|
|
|
+ if (this.goodsList.length) {
|
|
|
+ const item = this.warehouseList.find(e=>e.id === id)
|
|
|
+ console.log(item);
|
|
|
+ this.goodsList.forEach(k=>{
|
|
|
+ k.correspondName = item.name
|
|
|
+ this.$set(k,'correspondName',item.name)
|
|
|
+ this.$set(k,'correspondId',item.id)
|
|
|
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
getDate() {
|
|
|
var date = new Date();
|
|
|
var seperator1 = "-";
|
|
@@ -935,6 +945,8 @@ export default {
|
|
|
remark: this.mainForm.remark || '',
|
|
|
fileNo: this.mainForm.fileNo || '',
|
|
|
serviceId: this.mainForm.salesMan,
|
|
|
+ correspondId:goodsList[0].correspondId,
|
|
|
+ correspondName:goodsList[0].correspondName,
|
|
|
serviceName: saleManItem ? saleManItem.nickName : goodsList[0].serviceName,
|
|
|
items: goodsList,
|
|
|
}
|