|
@@ -32,12 +32,16 @@
|
|
|
</ws-form-item>
|
|
|
<!--合同编号-->
|
|
|
<ws-form-item label="合同编号" span="1" prop="contractNo">
|
|
|
- <el-select filterable clearable v-model="deptBudgetList.contractNo" placeholder="请选择合同编号或移库任务编号"
|
|
|
+ <el-select disabled filterable clearable v-model="deptBudgetList.contractNo" placeholder="请选择合同编号或移库任务编号"
|
|
|
class="typeselect" @change="contractNoChange1">
|
|
|
<el-option v-for="item in options1" :key="item.constKey" :label="item.contractNo"
|
|
|
:value="item.contractNo" />
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
+ <ws-form-item label="提示" span="1" prop="tips">
|
|
|
+ <ws-input disabled v-model="deptBudgetList.tips"
|
|
|
+ maxlength="20" size="small" />
|
|
|
+ </ws-form-item>
|
|
|
<!-- 货名 -->
|
|
|
<ws-form-item label="货名" span="1">
|
|
|
<ws-select disabled v-model="deptBudgetList.goodsName" placeholder class="typeselect"
|
|
@@ -47,7 +51,7 @@
|
|
|
</ws-select>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="类型" span="1" prop="type">
|
|
|
- <ws-select v-model="deptBudgetList.type" @change="typeChange">
|
|
|
+ <ws-select disabled v-model="deptBudgetList.type" @change="typeChange">
|
|
|
<ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
|
|
|
</ws-select>
|
|
|
</ws-form-item>
|
|
@@ -394,7 +398,7 @@
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- getReceiptTaskNo().toPromise()
|
|
|
+ getReceiptTaskNo({flag:2}).toPromise()
|
|
|
.then((response) => {
|
|
|
console.log(response)
|
|
|
this.deptBudgetList1 = response
|
|
@@ -1728,7 +1732,10 @@
|
|
|
},
|
|
|
contractNoChange(e) {
|
|
|
for (let i = 0; i < this.deptBudgetList1.length; i++) {
|
|
|
- if (this.deptBudgetList1[i].inOutTaskNo == e) {
|
|
|
+
|
|
|
+ console.log(this.deptBudgetList1[i])
|
|
|
+ if (this.deptBudgetList1[i].inOutTaskNo == e) {
|
|
|
+ var data=this.deptBudgetList1[i]
|
|
|
if(this.deptBudgetList1[i].contractNo){
|
|
|
this.deptBudgetList.contractNo = this.deptBudgetList1[i].contractNo
|
|
|
}
|
|
@@ -1740,14 +1747,19 @@
|
|
|
for (var i = 0; i < this.outContractNo.length; i++) {
|
|
|
if (this.outContractNo[i].contractNo == this.deptBudgetList.contractNo) {
|
|
|
if (this.outContractNo[i].inOutType == '采购入库') {
|
|
|
+ this.deptBudgetList.tips='卖方'+this.outContractNo[i].seller
|
|
|
this.deptBudgetList.inOutTypeKey = 1
|
|
|
} else if (this.outContractNo[i].inOutType == '移库入库') {
|
|
|
+ this.deptBudgetList.tips='入货库'+data.warehouseName
|
|
|
this.deptBudgetList.inOutTypeKey = 3
|
|
|
+ }else if (this.outContractNo[i].inOutType == '移库出库') {
|
|
|
+ this.deptBudgetList.tips='出货库'+data.warehouseName
|
|
|
} else if (this.outContractNo[i].inOutType == '暂存入库') {
|
|
|
this.deptBudgetList.inOutTypeKey = 4
|
|
|
} else if (this.outContractNo[i].inOutType == '贸易服务入库') {
|
|
|
this.deptBudgetList.inOutTypeKey = 5
|
|
|
} else if (this.outContractNo[i].inOutType == '退库') {
|
|
|
+ this.deptBudgetList.tips='出货库'+data.warehouseName
|
|
|
this.deptBudgetList.inOutTypeKey = 6
|
|
|
}
|
|
|
console.log(this.outContractNo[i])
|
|
@@ -1850,6 +1862,11 @@
|
|
|
for (var i = 0; i < this.goodnameList.length; i++) {
|
|
|
if (this.goodnameList[i].constValue == e) {
|
|
|
this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
|
|
|
+ if(e=='玉米(潮粮)'){
|
|
|
+ this.deptBudgetList.type='潮粮'
|
|
|
+ }else{
|
|
|
+ this.deptBudgetList.type='干粮'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|