|
@@ -37,12 +37,31 @@
|
|
|
<div class="flex">
|
|
|
<div class="left" style='width:66.6666%'>
|
|
|
<ws-info-table>
|
|
|
+ <!-- 任务编号 -->
|
|
|
+ <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
|
|
|
+ <el-select
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ v-model="deptBudgetList.inOutTaskNo"
|
|
|
+ placeholder="请选择任务编号"
|
|
|
+ class="typeselect"
|
|
|
+ @change="contractNoChange"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in deptBudgetList1"
|
|
|
+ :key="item.inOutTaskNo"
|
|
|
+ :label="item.inOutTaskNo"
|
|
|
+ :value="item.inOutTaskNo"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </ws-form-item>
|
|
|
<ws-form-item label="合同编号" span="1" prop="contractNo">
|
|
|
<ws-select
|
|
|
v-model="deptBudgetList.contractNo"
|
|
|
placeholder="请选择合同编号或移库任务编号"
|
|
|
class="typeselect"
|
|
|
@change='contractNoChange'
|
|
|
+ disabled
|
|
|
>
|
|
|
<ws-option
|
|
|
v-for="item in outContractNo"
|
|
@@ -583,6 +602,7 @@ import {
|
|
|
xialaNo,
|
|
|
getstaff,
|
|
|
goodsnameXiala,
|
|
|
+ getReceiptTaskNo,
|
|
|
} from '@/model/warehouse/index'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
@@ -689,6 +709,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
accessoryTFs: false,
|
|
|
+ deptBudgetList1:[],
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -730,8 +751,18 @@ export default {
|
|
|
|
|
|
},
|
|
|
contractNoChange(e){
|
|
|
+ for (let i = 0; i < this.deptBudgetList1.length; i++) {
|
|
|
+ if (this.deptBudgetList1[i].inOutTaskNo == e) {
|
|
|
+ var data = this.deptBudgetList1[i]
|
|
|
+ if (this.deptBudgetList1[i].contractNo) {
|
|
|
+ this.deptBudgetList.contractNo = this.deptBudgetList1[i].contractNo
|
|
|
+ } else {
|
|
|
+ this.deptBudgetList.contractNo = this.deptBudgetList1[i].moveTaskNo
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
for (var i = 0; i < this.outContractNo.length; i++) {
|
|
|
- if (this.outContractNo[i].contractNo == e) {
|
|
|
+ if (this.outContractNo[i].contractNo == this.deptBudgetList.contractNo) {
|
|
|
if (this.outContractNo[i].inOutType == '销售出库') {
|
|
|
if(!this.outContractNo[i].unitContractPrice){
|
|
|
this.deptBudgetList.tips =
|
|
@@ -1664,6 +1695,15 @@ export default {
|
|
|
this.deliveryType = response
|
|
|
})
|
|
|
}
|
|
|
+ getReceiptTaskNo({
|
|
|
+ flag: 1,
|
|
|
+ warehouseName: this.deptBudgetList.warehouseName,
|
|
|
+ agentKey: localStorage.getItem('ws-pf_userId'),
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.deptBudgetList1 = response
|
|
|
+ })
|
|
|
//合同编号
|
|
|
xialaNo({ compId: localStorage.getItem('ws-pf_compId'),flag:5 })
|
|
|
.toPromise()
|