|
@@ -9,7 +9,7 @@
|
|
<el-form ref="mainForm" :model="mainForm" :rules="mainFormRules" label-width="110px" size="small" label-position="right">
|
|
<el-form ref="mainForm" :model="mainForm" :rules="mainFormRules" label-width="110px" size="small" label-position="right">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="12" :lg="8">
|
|
<el-col :xs="24" :sm="12" :lg="8">
|
|
- <el-form-item label="工程订单" prop="orderNum">
|
|
|
|
|
|
+ <el-form-item label="工程订单号" prop="orderNum">
|
|
<el-input v-model="mainForm.orderNum" placeholder="系统自动生成" disabled></el-input>
|
|
<el-input v-model="mainForm.orderNum" placeholder="系统自动生成" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -179,7 +179,7 @@
|
|
<div class="main-title">
|
|
<div class="main-title">
|
|
<div class="title">货品信息</div>
|
|
<div class="title">货品信息</div>
|
|
<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" :disabled="!flag">
|
|
<el-option :label="item.name" :value="item.id" v-for="(item, index) in warehouseList" :key="index"></el-option>
|
|
<el-option :label="item.name" :value="item.id" v-for="(item, index) in warehouseList" :key="index"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="checkStock">检查库存</el-button>
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="checkStock">检查库存</el-button>
|
|
@@ -273,11 +273,8 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</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="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>
|
|
<el-table-column align="center" label="仓库状态" prop="status2" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>{{ status2Filter(scope.row) }}</div>
|
|
<div>{{ status2Filter(scope.row) }}</div>
|
|
@@ -440,6 +437,7 @@ export default {
|
|
createDate: '',
|
|
createDate: '',
|
|
fileNo: '',
|
|
fileNo: '',
|
|
salesMan: '',
|
|
salesMan: '',
|
|
|
|
+
|
|
examineRemark: '',
|
|
examineRemark: '',
|
|
},
|
|
},
|
|
mainFormRules: {
|
|
mainFormRules: {
|
|
@@ -477,7 +475,7 @@ export default {
|
|
|
|
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
warehouseValue: '',
|
|
warehouseValue: '',
|
|
-
|
|
|
|
|
|
+ flag:false,
|
|
isFirst: false,
|
|
isFirst: false,
|
|
salesmanList: [],
|
|
salesmanList: [],
|
|
}
|
|
}
|
|
@@ -516,12 +514,15 @@ export default {
|
|
goodsList: {
|
|
goodsList: {
|
|
handler(newValue, oldValue) {
|
|
handler(newValue, oldValue) {
|
|
if(this.goodsList && this.goodsList.length) {
|
|
if(this.goodsList && this.goodsList.length) {
|
|
|
|
+ this.flag = true
|
|
if(this.isFirst) {
|
|
if(this.isFirst) {
|
|
this.isFirst = false;
|
|
this.isFirst = false;
|
|
}else {
|
|
}else {
|
|
// this.mainForm.salesMan = this.goodsList[0].serviceId;
|
|
// this.mainForm.salesMan = this.goodsList[0].serviceId;
|
|
}
|
|
}
|
|
|
|
+ return newValue
|
|
}else {
|
|
}else {
|
|
|
|
+ this.flag = false
|
|
this.mainForm.salesMan = '';
|
|
this.mainForm.salesMan = '';
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -557,7 +558,16 @@ export default {
|
|
goBack() {
|
|
goBack() {
|
|
this.$emit('backListFormDetail');
|
|
this.$emit('backListFormDetail');
|
|
},
|
|
},
|
|
|
|
+ setStock(id){
|
|
|
|
+ if (this.goodsList.length) {
|
|
|
|
+ const item = this.warehouseList.find(e=>e.id === id)
|
|
|
|
+ this.goodsList.forEach(k=>{
|
|
|
|
+ this.$set(k,'correspondName',item.name)
|
|
|
|
+ this.$set(k,'correspondId',item.id)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ },
|
|
getDate() {
|
|
getDate() {
|
|
var date = new Date();
|
|
var date = new Date();
|
|
var seperator1 = "-";
|
|
var seperator1 = "-";
|
|
@@ -699,6 +709,9 @@ export default {
|
|
this.isFirst = true;
|
|
this.isFirst = true;
|
|
this.isShowDialog = true;
|
|
this.isShowDialog = true;
|
|
this.dialogTable_currentPage = 1;
|
|
this.dialogTable_currentPage = 1;
|
|
|
|
+ this.screenForm.correspondName = ''
|
|
|
|
+ this.screenForm.correspondId = ''
|
|
|
|
+ this.warehouseValue = ''
|
|
this.getComLoginList();
|
|
this.getComLoginList();
|
|
},
|
|
},
|
|
|
|
|
|
@@ -901,6 +914,10 @@ export default {
|
|
this.$errorMsg('数量不能大于工程信息数量');
|
|
this.$errorMsg('数量不能大于工程信息数量');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if(!this.multipleSelection[i].correspondId){
|
|
|
|
+ this.$errorMsg('请选择仓库');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
let goodsList = JSON.parse(JSON.stringify(this.multipleSelection));
|
|
let goodsList = JSON.parse(JSON.stringify(this.multipleSelection));
|
|
@@ -935,6 +952,8 @@ export default {
|
|
remark: this.mainForm.remark || '',
|
|
remark: this.mainForm.remark || '',
|
|
fileNo: this.mainForm.fileNo || '',
|
|
fileNo: this.mainForm.fileNo || '',
|
|
serviceId: this.mainForm.salesMan,
|
|
serviceId: this.mainForm.salesMan,
|
|
|
|
+ correspondId:goodsList[0].correspondId,
|
|
|
|
+ correspondName:goodsList[0].correspondName,
|
|
serviceName: saleManItem ? saleManItem.nickName : goodsList[0].serviceName,
|
|
serviceName: saleManItem ? saleManItem.nickName : goodsList[0].serviceName,
|
|
items: goodsList,
|
|
items: goodsList,
|
|
}
|
|
}
|