|
@@ -430,7 +430,7 @@
|
|
|
<el-row style="margin-bottom: 10px;">
|
|
|
<el-col :span="6" class="pltzTxt">默认采购组织</el-col>
|
|
|
<el-col :span="14">
|
|
|
- <el-input class="pltzIpt" clearable size="mini" v-model="adjust.purOrgName" @focus="chooseOrg('ORG_PARAM', true, '采购组织')">
|
|
|
+ <el-input class="pltzIpt" clearable size="mini" v-model="adjust.purOrgName" @clear="clearHang(0, 'cgzz')" @focus="chooseOrg('ORG_PARAM', true, '采购组织')">
|
|
|
<el-button size="mini" slot="append" icon="el-icon-more" @click="chooseOrg('ORG_PARAM', true, '采购组织')"></el-button>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
@@ -455,15 +455,15 @@
|
|
|
<el-row style="margin-bottom: 10px;">
|
|
|
<el-col :span="6" class="pltzTxt">收货仓库</el-col>
|
|
|
<el-col :span="14">
|
|
|
- <el-input class="pltzIpt" clearable size="mini" v-model="adjust.warehouseName" @focus="chooseOrg('WAREHOUSE_PARAM', true, '收货仓库')">
|
|
|
- <el-button size="mini" slot="append" icon="el-icon-more" @click="chooseOrg('WAREHOUSE_PARAM', true, '收货仓库')"></el-button>
|
|
|
+ <el-input class="pltzIpt" clearable size="mini" v-model="adjust.warehouseName" @clear="clearHang(0, 'shck')" @focus="adjustCangku('WAREHOUSE_PARAM', true, '收货仓库', adjust.puOrg)">
|
|
|
+ <el-button size="mini" slot="append" icon="el-icon-more" @click="adjustCangku('WAREHOUSE_PARAM', true, '收货仓库', adjust.puOrg)"></el-button>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row style="margin-bottom: 10px;">
|
|
|
<el-col :span="6" class="pltzTxt">收货货位</el-col>
|
|
|
<el-col :span="14">
|
|
|
- <el-input class="pltzIpt" clearable size="mini" v-model="adjust.allocationName" @focus="adjustHuoWei('ALLOCATION_PARAM', true, '收货货位', adjust.warehouse)">
|
|
|
+ <el-input class="pltzIpt" clearable size="mini" v-model="adjust.allocationName" @clear="clearHang(0, 'shhw')" @focus="adjustHuoWei('ALLOCATION_PARAM', true, '收货货位', adjust.warehouse)">
|
|
|
<el-button size="mini" slot="append" icon="el-icon-more" @click="adjustHuoWei('ALLOCATION_PARAM', true, '收货货位', adjust.warehouse)"></el-button>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
@@ -471,7 +471,7 @@
|
|
|
<el-row style="margin-bottom: 10px;">
|
|
|
<el-col :span="6" class="pltzTxt">补单供应商</el-col>
|
|
|
<el-col :span="14">
|
|
|
- <el-input class="pltzIpt" clearable :disabled="sonDisable || BDZT" size="mini" v-model="adjust.additionalSupplierName" @focus="chooseOrg('SUPPLIER_PARAM', true, '补单供应商')">
|
|
|
+ <el-input class="pltzIpt" clearable :disabled="sonDisable || BDZT" size="mini" @clear="clearHang(0, 'bdgys')" v-model="adjust.additionalSupplierName" @focus="chooseOrg('SUPPLIER_PARAM', true, '补单供应商')">
|
|
|
<el-button size="mini" :disabled="sonDisable || BDZT" slot="append" icon="el-icon-more" @click="chooseOrg('SUPPLIER_PARAM', true, '补单供应商')"></el-button>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
@@ -485,7 +485,7 @@
|
|
|
<el-row style="margin-bottom: 10px;">
|
|
|
<el-col :span="6" class="pltzTxt">收货地址</el-col>
|
|
|
<el-col :span="14">
|
|
|
- <el-input class="pltzIpt" clearable size="mini" v-model="adjust.deliveryAddressName">
|
|
|
+ <el-input class="pltzIpt" clearable size="mini" @clear="clearHang(0, 'shdz')" v-model="adjust.deliveryAddressName">
|
|
|
<el-button size="mini" slot="append" icon="el-icon-more" @click="chooseOrg('ADDRESS_PARAM', true, '收货地址')"></el-button>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
@@ -1748,6 +1748,37 @@ export default {
|
|
|
this.basicForm.puDemandItemList[index].additionalSupplierName = null
|
|
|
this.basicForm.puDemandItemList[index].additionalSupplier = null
|
|
|
}
|
|
|
+ // 清空批量调整内字段
|
|
|
+ if (title == 'cgzz') {
|
|
|
+ this.adjust.purOrgName = ''
|
|
|
+ this.adjust.puOrg = ''
|
|
|
+ this.adjust.warehouse = ''
|
|
|
+ this.adjust.warehouseName = ''
|
|
|
+ this.adjust.allocation = ''
|
|
|
+ this.adjust.allocationName = ''
|
|
|
+ }
|
|
|
+ if (title == 'shck') {
|
|
|
+ this.adjust.warehouse = ''
|
|
|
+ this.adjust.warehouseName = ''
|
|
|
+ this.adjust.allocation = ''
|
|
|
+ this.adjust.allocationName = ''
|
|
|
+ this.adjust.csFlag = ''
|
|
|
+ }
|
|
|
+ if (title == 'shhw') {
|
|
|
+ this.adjust.allocation = ''
|
|
|
+ this.adjust.allocationName = ''
|
|
|
+ }
|
|
|
+ if (title == 'bdgys') {
|
|
|
+ this.adjust.additionalSupplier = ''
|
|
|
+ this.adjust.additionalSupplierName = ''
|
|
|
+ }
|
|
|
+ if (title == 'shdz') {
|
|
|
+ this.adjust.deliveryAddressName = ''
|
|
|
+ this.adjust.deliveryAddress = ''
|
|
|
+ this.adjust.contacts = ''
|
|
|
+ this.adjust.contactsPhone = ''
|
|
|
+ this.adjust.address = ''
|
|
|
+ }
|
|
|
},
|
|
|
// 清除需求客户将明细行内也清空
|
|
|
cleanCustomer() {
|
|
@@ -1859,6 +1890,18 @@ export default {
|
|
|
this.$modal.notifyWarning('收货仓库存在收货货位,请填写!')
|
|
|
}
|
|
|
},
|
|
|
+ // 批量调整选择仓库
|
|
|
+ adjustCangku(type, isPage, title, pkOrg) {
|
|
|
+ this.referCondition.type = type
|
|
|
+ this.referCondition.isPage = isPage
|
|
|
+ this.referCondition.title = title
|
|
|
+ if (pkOrg) {
|
|
|
+ this.referCondition.pkOrg = pkOrg
|
|
|
+ this.$refs.refer.init(this.referCondition)
|
|
|
+ } else {
|
|
|
+ this.$modal.notifyWarning("请先选择默认采购组织");
|
|
|
+ }
|
|
|
+ },
|
|
|
// 批量调整选择货位
|
|
|
adjustHuoWei(type, isPage, title, stordocId) {
|
|
|
this.referCondition.type = type
|