|
@@ -24,26 +24,34 @@
|
|
|
<div class="basicInformation">
|
|
|
<div class="annu">
|
|
|
<el-radio-group @change="tasktypechange" v-model="dataList.taskTypeKey">
|
|
|
- <el-radio label="1" class="a">出库</el-radio>
|
|
|
- <el-radio label="2" class="a">入库</el-radio>
|
|
|
- <el-radio label="3" class="a">移库</el-radio>
|
|
|
- <el-radio label="4" class="a">退库并出库</el-radio>
|
|
|
- </el-radio-group>
|
|
|
+ <el-radio label="1" class="a">出库</el-radio>
|
|
|
+ <el-radio label="2" class="a">入库</el-radio>
|
|
|
+ <el-radio label="3" class="a">移库</el-radio>
|
|
|
+ <el-radio label="4" class="a">退库并出库</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
</div>
|
|
|
<div class="ding"></div>
|
|
|
- <div v-if="dataList.taskTypeKey != 2&&dataList.taskTypeKey != 4" class="center1">
|
|
|
- <img
|
|
|
- style="position: relative; top: 40px; left: 300px;"
|
|
|
- width="19"
|
|
|
- height="19"
|
|
|
- src="../../../public/img/cangku.png"
|
|
|
- alt=""
|
|
|
- />
|
|
|
+ <div
|
|
|
+ v-if="dataList.taskTypeKey != 2 && dataList.taskTypeKey != 4"
|
|
|
+ class="center1"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ style="position: relative; top: 40px; left: 300px"
|
|
|
+ width="19"
|
|
|
+ height="19"
|
|
|
+ src="../../../public/img/cangku.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
<!--出库=-->
|
|
|
<div class="small-title">
|
|
|
<h3>出库任务({{ inOutTaskNo }})</h3>
|
|
|
</div>
|
|
|
- <el-form ref="dataList" :model="dataList" label-width="140px" input-width="300px">
|
|
|
+ <el-form
|
|
|
+ ref="dataList"
|
|
|
+ :model="dataList"
|
|
|
+ label-width="140px"
|
|
|
+ input-width="300px"
|
|
|
+ >
|
|
|
<!-- 仓库名 -->
|
|
|
<el-form-item label="仓库名">
|
|
|
<el-select
|
|
@@ -62,8 +70,8 @@
|
|
|
</el-form-item>
|
|
|
<!-- 出库类型 -->
|
|
|
<el-form-item label="出库类型">
|
|
|
- <el-select
|
|
|
- :disabled='dataList.taskTypeKey == 3||dataList.taskTypeKey == 4'
|
|
|
+ <el-select
|
|
|
+ :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
|
v-model="dataList.inOutType"
|
|
|
placeholder="请选择出库类型"
|
|
|
class="typeselect"
|
|
@@ -85,9 +93,9 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 合同编号 -->
|
|
|
- <el-form-item v-if='dataList.taskTypeKey != 3' label="合同编号">
|
|
|
+ <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
|
|
|
<el-select
|
|
|
- @change='changecontract'
|
|
|
+ @change="changecontract"
|
|
|
v-model="dataList.contractNo"
|
|
|
placeholder="请输入合同编号"
|
|
|
class="typeselect"
|
|
@@ -100,9 +108,9 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if='dataList.taskTypeKey == 3' label="移库任务编号">
|
|
|
+ <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
|
|
|
<el-input
|
|
|
- @input="selectTaskNo"
|
|
|
+ @input="selectTaskNo"
|
|
|
v-model="dataList.moveTaskNo"
|
|
|
placeholder="请输入移库任务编号"
|
|
|
class="typeselect"
|
|
@@ -118,7 +126,7 @@
|
|
|
<!-- 货名 -->
|
|
|
<el-form-item label="货名" class="huom">
|
|
|
<el-select
|
|
|
- :disabled='dataList.taskTypeKey != 3'
|
|
|
+ :disabled="dataList.taskTypeKey != 3"
|
|
|
v-model="dataList.goodsName"
|
|
|
placeholder="货名"
|
|
|
class="huom"
|
|
@@ -133,7 +141,11 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--重量(吨)-->
|
|
|
- <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px" >
|
|
|
+ <el-form-item
|
|
|
+ label="重量(吨)"
|
|
|
+ span="1"
|
|
|
+ style="margin-left: 350px; margin-top: -40px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
v-model="dataList.weight"
|
|
|
placeholder="请输入重量"
|
|
@@ -161,18 +173,22 @@
|
|
|
<!--容重(克/升)>=-->
|
|
|
<el-form-item label="容重(克/升)>=">
|
|
|
<el-input
|
|
|
- @input='bulkDensitychange'
|
|
|
+ @input="bulkDensitychange"
|
|
|
v-model="dataList.bulkDensity"
|
|
|
placeholder="请输入容重"
|
|
|
maxlength="120"
|
|
|
- size="small"
|
|
|
+ size="small"
|
|
|
class="huom"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<!--水分(%)<=-->
|
|
|
- <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px" >
|
|
|
+ <el-form-item
|
|
|
+ label="水分(%)<="
|
|
|
+ span="1"
|
|
|
+ style="margin-left: 350px; margin-top: -40px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
- @input='waterContentchange'
|
|
|
+ @input="waterContentchange"
|
|
|
v-model="dataList.waterContent"
|
|
|
placeholder="请输入水分占比"
|
|
|
maxlength="120"
|
|
@@ -181,9 +197,13 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<!--单价(元/吨)-->
|
|
|
- <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px" >
|
|
|
+ <el-form-item
|
|
|
+ label="单价(元/吨)"
|
|
|
+ span="1"
|
|
|
+ style="margin-left: 650px; margin-top: -40px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
- @input='unitPricechange'
|
|
|
+ @input="unitPricechange"
|
|
|
v-model="dataList.unitPrice"
|
|
|
placeholder="请输入单价"
|
|
|
maxlength="120"
|
|
@@ -223,29 +243,37 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--业务描述=-->
|
|
|
- <el-form-item v-if='dataList.taskTypeKey != 3' label="业务描述" span="20">
|
|
|
+ <el-form-item
|
|
|
+ v-if="dataList.taskTypeKey != 3"
|
|
|
+ label="业务描述"
|
|
|
+ span="20"
|
|
|
+ >
|
|
|
<el-input
|
|
|
v-model="dataList.businessDescribe"
|
|
|
placeholder="请输入业务描述,不超过150字"
|
|
|
maxlength="150"
|
|
|
size="large"
|
|
|
-
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div v-show="dataList.taskTypeKey != 1" class="center1">
|
|
|
<img
|
|
|
- style="position: relative; top: 40px; left: 300px;"
|
|
|
- width="19"
|
|
|
- height="19"
|
|
|
- src="../../../public/img/cangku.png"
|
|
|
- alt=""
|
|
|
- />
|
|
|
+ style="position: relative; top: 40px; left: 300px"
|
|
|
+ width="19"
|
|
|
+ height="19"
|
|
|
+ src="../../../public/img/cangku.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
<div class="small-title">
|
|
|
<h3>入库任务({{ inOutTaskNo1 }} )</h3>
|
|
|
</div>
|
|
|
- <el-form v-if='!deletetask' ref="form" :model="form" label-width="140px">
|
|
|
+ <el-form
|
|
|
+ v-if="!deletetask"
|
|
|
+ ref="form"
|
|
|
+ :model="form"
|
|
|
+ label-width="140px"
|
|
|
+ >
|
|
|
<!-- 仓库名 -->
|
|
|
<el-form-item label="仓库名">
|
|
|
<el-select
|
|
@@ -264,7 +292,7 @@
|
|
|
<!-- 入库类型 -->
|
|
|
<el-form-item label="入库类型">
|
|
|
<el-select
|
|
|
- :disabled='dataList.taskTypeKey == 3||dataList.taskTypeKey == 4'
|
|
|
+ :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
|
v-model="dataList1.inOutType"
|
|
|
placeholder="请选择入库类型"
|
|
|
class="typeselect"
|
|
@@ -286,9 +314,9 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 合同编号 -->
|
|
|
- <el-form-item v-if='dataList1.taskTypeKey != 3' label="合同编号">
|
|
|
+ <el-form-item v-if="dataList1.taskTypeKey != 3" label="合同编号">
|
|
|
<el-select
|
|
|
- @change='changecontract1'
|
|
|
+ @change="changecontract1"
|
|
|
v-model="dataList1.contractNo"
|
|
|
placeholder="请输入合同编号"
|
|
|
class="typeselect"
|
|
@@ -301,9 +329,9 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if='dataList1.taskTypeKey == 3' label="移库任务编号">
|
|
|
+ <el-form-item v-if="dataList1.taskTypeKey == 3" label="移库任务编号">
|
|
|
<el-input
|
|
|
- disabled
|
|
|
+ disabled
|
|
|
v-model="dataList1.moveTaskNo"
|
|
|
placeholder="请输入移库任务编号"
|
|
|
class="typeselect"
|
|
@@ -334,21 +362,24 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--重量(吨)-->
|
|
|
- <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px" >
|
|
|
+ <el-form-item
|
|
|
+ label="重量(吨)"
|
|
|
+ span="1"
|
|
|
+ style="margin-left: 350px; margin-top: -40px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
- @input='weightchange'
|
|
|
+ @input="weightchange"
|
|
|
v-model="dataList1.weight"
|
|
|
placeholder="请输入重量"
|
|
|
maxlength="120"
|
|
|
size="small"
|
|
|
class="huom"
|
|
|
-
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<!-- 品级 -->
|
|
|
<el-form-item label="品级">
|
|
|
<el-select
|
|
|
- :disabled='dataList.taskTypeKey == 3'
|
|
|
+ :disabled="dataList.taskTypeKey == 3"
|
|
|
v-model="dataList1.grade"
|
|
|
placeholder=""
|
|
|
class="typeselect"
|
|
@@ -365,8 +396,8 @@
|
|
|
<!--容重(克/升)>=-->
|
|
|
<el-form-item label="容重(克/升)>=">
|
|
|
<el-input
|
|
|
- @input='bulkDensitychange'
|
|
|
- :disabled='dataList.taskTypeKey == 3'
|
|
|
+ @input="bulkDensitychange"
|
|
|
+ :disabled="dataList.taskTypeKey == 3"
|
|
|
v-model="dataList1.bulkDensity"
|
|
|
placeholder="请输入容重"
|
|
|
maxlength="120"
|
|
@@ -375,10 +406,14 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<!--水分(%)<=-->
|
|
|
- <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
|
|
|
+ <el-form-item
|
|
|
+ label="水分(%)<="
|
|
|
+ span="1"
|
|
|
+ style="margin-left: 350px; margin-top: -40px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
- @input='waterContentchange'
|
|
|
- :disabled='dataList.taskTypeKey == 3'
|
|
|
+ @input="waterContentchange"
|
|
|
+ :disabled="dataList.taskTypeKey == 3"
|
|
|
v-model="dataList1.waterContent"
|
|
|
placeholder="请输入水分占比"
|
|
|
maxlength="120"
|
|
@@ -387,10 +422,14 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<!--单价(元/吨)-->
|
|
|
- <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px" >
|
|
|
+ <el-form-item
|
|
|
+ label="单价(元/吨)"
|
|
|
+ span="1"
|
|
|
+ style="margin-left: 650px; margin-top: -40px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
- @input='unitPricechange'
|
|
|
- :disabled='dataList.taskTypeKey == 3'
|
|
|
+ @input="unitPricechange"
|
|
|
+ :disabled="dataList.taskTypeKey == 3"
|
|
|
v-model="dataList1.unitPrice"
|
|
|
placeholder="请输入单价"
|
|
|
maxlength="120"
|
|
@@ -430,7 +469,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--业务描述=-->
|
|
|
- <el-form-item v-if='dataList.taskTypeKey != 4' label="业务描述">
|
|
|
+ <el-form-item v-if="dataList.taskTypeKey != 4" label="业务描述">
|
|
|
<el-input
|
|
|
v-model="dataList1.businessDescribe"
|
|
|
placeholder="请输入业务描述,不超过150字"
|
|
@@ -444,7 +483,7 @@
|
|
|
<!--出库=-->
|
|
|
<div class="small-title">
|
|
|
<img
|
|
|
- style="position: relative; top: 40px; left: -22px;"
|
|
|
+ style="position: relative; top: 40px; left: -22px"
|
|
|
width="19"
|
|
|
height="19"
|
|
|
src="../../../public/img/cangku.png"
|
|
@@ -453,7 +492,6 @@
|
|
|
<h3>出库任务({{ inOutTaskNo }})</h3>
|
|
|
</div>
|
|
|
<el-form ref="dataList" :model="dataList" label-width="140px">
|
|
|
-
|
|
|
<!-- 仓库名 -->
|
|
|
<el-form-item label="仓库名">
|
|
|
<el-select
|
|
@@ -472,8 +510,8 @@
|
|
|
</el-form-item>
|
|
|
<!-- 出库类型 -->
|
|
|
<el-form-item label="出库类型">
|
|
|
- <el-select
|
|
|
- :disabled='dataList.taskTypeKey == 3||dataList.taskTypeKey == 4'
|
|
|
+ <el-select
|
|
|
+ :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
|
v-model="dataList.inOutType"
|
|
|
placeholder="请选择出库类型"
|
|
|
class="typeselect"
|
|
@@ -495,9 +533,9 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 合同编号 -->
|
|
|
- <el-form-item v-if='dataList.taskTypeKey != 3' label="合同编号">
|
|
|
+ <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
|
|
|
<el-select
|
|
|
- @change='changecontract'
|
|
|
+ @change="changecontract"
|
|
|
v-model="dataList.contractNo"
|
|
|
placeholder="请输入合同编号"
|
|
|
class="typeselect"
|
|
@@ -510,9 +548,9 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if='dataList.taskTypeKey == 3' label="移库任务编号">
|
|
|
+ <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
|
|
|
<el-select
|
|
|
- @change="selectTaskNo"
|
|
|
+ @change="selectTaskNo"
|
|
|
v-model="dataList.moveTaskNo"
|
|
|
placeholder="请输入移库任务编号"
|
|
|
class="typeselect"
|
|
@@ -526,9 +564,9 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 货名 -->
|
|
|
- <el-form-item label="货名" class="huom" >
|
|
|
+ <el-form-item label="货名" class="huom">
|
|
|
<el-select
|
|
|
- :disabled='dataList.taskTypeKey != 3'
|
|
|
+ :disabled="dataList.taskTypeKey != 3"
|
|
|
v-model="dataList.goodsName"
|
|
|
placeholder="货名"
|
|
|
class="huom"
|
|
@@ -543,9 +581,13 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--重量(吨)-->
|
|
|
- <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
|
|
|
+ <el-form-item
|
|
|
+ label="重量(吨)"
|
|
|
+ span="1"
|
|
|
+ style="margin-left: 350px; margin-top: -40px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
- :disabled='dataList.taskTypeKey == 4'
|
|
|
+ :disabled="dataList.taskTypeKey == 4"
|
|
|
v-model="dataList.weight"
|
|
|
placeholder="请输入重量"
|
|
|
maxlength="120"
|
|
@@ -556,7 +598,7 @@
|
|
|
<!-- 品级 -->
|
|
|
<el-form-item label="品级">
|
|
|
<el-select
|
|
|
- :disabled='dataList.taskTypeKey == 3||dataList.taskTypeKey == 4'
|
|
|
+ :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
|
v-model="dataList.grade"
|
|
|
placeholder=""
|
|
|
class="typeselect"
|
|
@@ -573,7 +615,7 @@
|
|
|
<!--容重(克/升)>=-->
|
|
|
<el-form-item label="容重(克/升)>=">
|
|
|
<el-input
|
|
|
- :disabled='dataList.taskTypeKey == 3||dataList.taskTypeKey == 4'
|
|
|
+ :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
|
v-model="dataList.bulkDensity"
|
|
|
placeholder="请输入容重"
|
|
|
maxlength="120"
|
|
@@ -582,9 +624,13 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<!--水分(%)<=-->
|
|
|
- <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
|
|
|
+ <el-form-item
|
|
|
+ label="水分(%)<="
|
|
|
+ span="1"
|
|
|
+ style="margin-left: 350px; margin-top: -40px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
- :disabled='dataList.taskTypeKey == 3||dataList.taskTypeKey == 4'
|
|
|
+ :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
|
v-model="dataList.waterContent"
|
|
|
placeholder="请输入水分占比"
|
|
|
maxlength="120"
|
|
@@ -593,14 +639,18 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<!--单价(元/吨)-->
|
|
|
- <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
|
|
|
+ <el-form-item
|
|
|
+ label="单价(元/吨)"
|
|
|
+ span="1"
|
|
|
+ style="margin-left: 650px; margin-top: -40px"
|
|
|
+ >
|
|
|
<el-input
|
|
|
- :disabled='dataList.taskTypeKey == 3||dataList.taskTypeKey == 4'
|
|
|
+ :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
|
v-model="dataList.unitPrice"
|
|
|
placeholder="请输入单价"
|
|
|
maxlength="120"
|
|
|
size="small"
|
|
|
- class="huom"
|
|
|
+ class="huom"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<!--预计出库日期-->
|
|
@@ -660,7 +710,7 @@ import {
|
|
|
xialaNo,
|
|
|
addoreditoutput,
|
|
|
outexamine,
|
|
|
- getGoodsName
|
|
|
+ getGoodsName,
|
|
|
} from '@/model/tasksport/index'
|
|
|
import { packList } from '@/model/contarct/index'
|
|
|
import { pullDown, getstaff } from '@/model/warehouse/index'
|
|
@@ -683,31 +733,33 @@ export default {
|
|
|
isShow(val) {
|
|
|
this.showType = val
|
|
|
},
|
|
|
- flag(val){
|
|
|
+ flag(val) {
|
|
|
xialaNo({
|
|
|
compId: this.compId,
|
|
|
- flag: val
|
|
|
+ flag: val,
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- if(this.dataList1.taskTypeKey == 2 || this.dataList1.taskTypeKey == 4){
|
|
|
- this.contractNoList1 = response
|
|
|
- if(this.dataList1.taskTypeKey == 2){
|
|
|
- this.contractNoList = response
|
|
|
- }
|
|
|
- }
|
|
|
- else{
|
|
|
+ if (
|
|
|
+ this.dataList1.taskTypeKey == 2 ||
|
|
|
+ this.dataList1.taskTypeKey == 4
|
|
|
+ ) {
|
|
|
+ this.contractNoList1 = response
|
|
|
+ if (this.dataList1.taskTypeKey == 2) {
|
|
|
this.contractNoList = response
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.contractNoList = response
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['deptBudgetList']),
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- flag:1,
|
|
|
+ flag: 1,
|
|
|
//弹出框
|
|
|
dialogViewSpareMoney: false,
|
|
|
dialogApproveFormVisible: false,
|
|
@@ -717,7 +769,7 @@ export default {
|
|
|
tableDate: [],
|
|
|
// 是否显示
|
|
|
showType: true,
|
|
|
- disabled:false,
|
|
|
+ disabled: false,
|
|
|
// 年
|
|
|
year: '',
|
|
|
contractNoList: [],
|
|
@@ -748,7 +800,7 @@ export default {
|
|
|
warehouseNameList1: [],
|
|
|
appendixIdsAdd: '',
|
|
|
uploadSuccess: {},
|
|
|
- deletetask:false,
|
|
|
+ deletetask: false,
|
|
|
warehouseInOutDetail: {},
|
|
|
onChange: {},
|
|
|
deptBudgetList1: [],
|
|
@@ -825,9 +877,9 @@ export default {
|
|
|
|
|
|
return arr.join('')
|
|
|
},
|
|
|
- selectTaskNo(e){
|
|
|
- if(this.dataList.taskTypeKey==3){
|
|
|
- this.$set(this.dataList1,'moveTaskNo',e)
|
|
|
+ selectTaskNo(e) {
|
|
|
+ if (this.dataList.taskTypeKey == 3) {
|
|
|
+ this.$set(this.dataList1, 'moveTaskNo', e)
|
|
|
}
|
|
|
},
|
|
|
dataFilter(val) {
|
|
@@ -848,67 +900,83 @@ export default {
|
|
|
this.options = this.staffList
|
|
|
}
|
|
|
},
|
|
|
- weightchange(e){
|
|
|
- if(this.dataList.taskTypeKey==4){
|
|
|
- this.$set(this.dataList,'weight',e)
|
|
|
+ weightchange(e) {
|
|
|
+ if (this.dataList.taskTypeKey == 4) {
|
|
|
+ this.$set(this.dataList, 'weight', e)
|
|
|
}
|
|
|
},
|
|
|
- bulkDensitychange(e){
|
|
|
- if(this.dataList.taskTypeKey==4){
|
|
|
- this.$set(this.dataList,'bulkDensity',e)
|
|
|
- }else if(this.dataList1.taskTypeKey==3){
|
|
|
- this.$set(this.dataList1,'bulkDensity',e)
|
|
|
+ bulkDensitychange(e) {
|
|
|
+ if (this.dataList.taskTypeKey == 4) {
|
|
|
+ this.$set(this.dataList, 'bulkDensity', e)
|
|
|
+ } else if (this.dataList1.taskTypeKey == 3) {
|
|
|
+ this.$set(this.dataList1, 'bulkDensity', e)
|
|
|
}
|
|
|
},
|
|
|
- waterContentchange(e){
|
|
|
- if(this.dataList.taskTypeKey==4){
|
|
|
- this.$set(this.dataList,'waterContent',e)
|
|
|
- }else if(this.dataList1.taskTypeKey==3){
|
|
|
- this.$set(this.dataList1,'waterContent',e)
|
|
|
+ waterContentchange(e) {
|
|
|
+ if (this.dataList.taskTypeKey == 4) {
|
|
|
+ this.$set(this.dataList, 'waterContent', e)
|
|
|
+ } else if (this.dataList1.taskTypeKey == 3) {
|
|
|
+ this.$set(this.dataList1, 'waterContent', e)
|
|
|
}
|
|
|
},
|
|
|
- unitPricechange(e){
|
|
|
- if(this.dataList.taskTypeKey==4){
|
|
|
- this.$set(this.dataList,'unitPrice',e)
|
|
|
- }else if(this.dataList1.taskTypeKey==3){
|
|
|
- this.$set(this.dataList1,'unitPrice',e)
|
|
|
+ unitPricechange(e) {
|
|
|
+ if (this.dataList.taskTypeKey == 4) {
|
|
|
+ this.$set(this.dataList, 'unitPrice', e)
|
|
|
+ } else if (this.dataList1.taskTypeKey == 3) {
|
|
|
+ this.$set(this.dataList1, 'unitPrice', e)
|
|
|
}
|
|
|
},
|
|
|
changecontract(e){
|
|
|
- if(this.dataList.taskTypeKey!=3 ){
|
|
|
+ if(this.dataList.taskTypeKey != 3 ){
|
|
|
for (let i = 0; i < this.contractNoList.length; i++) {
|
|
|
- if(this.contractNoList[i].contractNo==e){
|
|
|
- getGoodsName({ contractId:this.contractNoList[i].id,contractNo:this.contractNoList[i].contractNo}) .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$set(this.dataList,'goodsName',response.goodsName)
|
|
|
- this.$set(this.dataList,'goodsNameKey',response.goodsNameKey)
|
|
|
- this.$set(this.dataList,'grade',response.grade)
|
|
|
- this.$set(this.dataList,'gradeKey',response.gradeKey)
|
|
|
- this.$set(this.dataList,'waterContent',response.waterContent)
|
|
|
- this.$set(this.dataList,'bulkDensity',response.bulkDensity)
|
|
|
- this.$set(this.dataList,'weight',response.weight)
|
|
|
- this.$set(this.dataList,'unitPrice',response.unitContractPrice)
|
|
|
+ if (this.contractNoList[i].contractNo == e) {
|
|
|
+ getGoodsName({
|
|
|
+ contractId: this.contractNoList[i].id,
|
|
|
+ contractNo: this.contractNoList[i].contractNo,
|
|
|
})
|
|
|
- }
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$set(this.dataList, 'goodsName', response.goodsName)
|
|
|
+ this.$set(this.dataList, 'goodsNameKey', response.goodsNameKey)
|
|
|
+ this.$set(this.dataList, 'grade', response.grade)
|
|
|
+ this.$set(this.dataList, 'gradeKey', response.gradeKey)
|
|
|
+ this.$set(this.dataList, 'waterContent', response.waterContent)
|
|
|
+ this.$set(this.dataList, 'bulkDensity', response.bulkDensity)
|
|
|
+ this.$set(this.dataList, 'weight', response.weight)
|
|
|
+ this.$set(
|
|
|
+ this.dataList,
|
|
|
+ 'unitPrice',
|
|
|
+ response.unitContractPrice
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
changecontract1(e){
|
|
|
- if(this.dataList1.taskTypeKey!=3 ){
|
|
|
+ if(this.dataList1.taskTypeKey != 3 ){
|
|
|
for (let i = 0; i < this.contractNoList.length; i++) {
|
|
|
- if(this.contractNoList[i].contractNo==e){
|
|
|
- getGoodsName({ contractId:this.contractNoList[i].id,contractNo:this.contractNoList[i].contractNo}) .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$set(this.dataList1,'goodsName',response.goodsName)
|
|
|
- this.$set(this.dataList1,'goodsNameKey',response.goodsNameKey)
|
|
|
- this.$set(this.dataList1,'grade',response.grade)
|
|
|
- this.$set(this.dataList1,'gradeKey',response.gradeKey)
|
|
|
- this.$set(this.dataList1,'waterContent',response.waterContent)
|
|
|
- this.$set(this.dataList1,'bulkDensity',response.bulkDensity)
|
|
|
- this.$set(this.dataList1,'weight',response.weight)
|
|
|
- this.$set(this.dataList1,'unitPrice',response.unitContractPrice)
|
|
|
+ if (this.contractNoList[i].contractNo == e) {
|
|
|
+ getGoodsName({
|
|
|
+ contractId: this.contractNoList[i].id,
|
|
|
+ contractNo: this.contractNoList[i].contractNo,
|
|
|
})
|
|
|
- }
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$set(this.dataList1, 'goodsName', response.goodsName)
|
|
|
+ this.$set(this.dataList1, 'goodsNameKey', response.goodsNameKey)
|
|
|
+ this.$set(this.dataList1, 'grade', response.grade)
|
|
|
+ this.$set(this.dataList1, 'gradeKey', response.gradeKey)
|
|
|
+ this.$set(this.dataList1, 'waterContent', response.waterContent)
|
|
|
+ this.$set(this.dataList1, 'bulkDensity', response.bulkDensity)
|
|
|
+ this.$set(this.dataList1, 'weight', response.weight)
|
|
|
+ this.$set(
|
|
|
+ this.dataList1,
|
|
|
+ 'unitPrice',
|
|
|
+ response.unitContractPrice
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -927,23 +995,22 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
requestadd(list, status) {
|
|
|
- list.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
- list.publisher =
|
|
|
- sessionStorage.getItem('ws-pf_roleName') +
|
|
|
- sessionStorage.getItem('ws-pf_staffName')
|
|
|
- addoreditoutput(list)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$message.success('添加成功')
|
|
|
- this.$router.push({ path: 'tranManagementWarehouseInOutTask' })
|
|
|
- })
|
|
|
+ list.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
+ list.publisher =
|
|
|
+ sessionStorage.getItem('ws-pf_roleName') +
|
|
|
+ sessionStorage.getItem('ws-pf_staffName')
|
|
|
+ addoreditoutput(list)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('添加成功')
|
|
|
+ this.$router.push({ path: 'tranManagementWarehouseInOutTask' })
|
|
|
+ })
|
|
|
},
|
|
|
//提交按钮
|
|
|
submit() {
|
|
|
- this.dataList.inOutFlag=1
|
|
|
- this.dataList1.inOutFlag=2
|
|
|
+ this.dataList.inOutFlag = 1
|
|
|
+ this.dataList1.inOutFlag = 2
|
|
|
if (this.dataList.taskTypeKey == 1) {
|
|
|
-
|
|
|
this.dataList.inOutTaskNo = this.inOutTaskNo
|
|
|
this.requestadd(this.dataList)
|
|
|
} else if (this.dataList1.taskTypeKey == 2) {
|
|
@@ -955,17 +1022,16 @@ export default {
|
|
|
) {
|
|
|
this.dataList.inOutTaskNo = this.inOutTaskNo
|
|
|
this.dataList.relevanceId = this.GetRandomNum(100000, 999999)
|
|
|
- if(this.dataList.taskTypeKey == 3){
|
|
|
- this.dataList.businessDescribe=this.dataList1.businessDescribe
|
|
|
- }else{
|
|
|
- this.dataList1.businessDescribe=this.dataList.businessDescribe
|
|
|
+ if (this.dataList.taskTypeKey == 3) {
|
|
|
+ this.dataList.businessDescribe = this.dataList1.businessDescribe
|
|
|
+ } else {
|
|
|
+ this.dataList1.businessDescribe = this.dataList.businessDescribe
|
|
|
}
|
|
|
this.requestadd(this.dataList, 'repetition')
|
|
|
this.dataList1.inOutTaskNo = this.inOutTaskNo1
|
|
|
this.dataList1.relevanceId = this.dataList.relevanceId
|
|
|
this.requestadd(this.dataList1, 'repetition')
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
selectwarehouseName() {},
|
|
|
tarechange(e) {
|
|
@@ -1000,9 +1066,9 @@ export default {
|
|
|
for (var i = 0; i < this.gradeList.length; i++) {
|
|
|
if (this.gradeList[i].constValue == e) {
|
|
|
this.dataList.gradeKey = this.gradeList[i].constKey
|
|
|
- if(this.dataList.taskTypeKey==3){
|
|
|
- this.$set(this.dataList1,'grade',e)
|
|
|
- this.$set(this.dataList1,'gradeKey',this.gradeList[i].constKey)
|
|
|
+ if (this.dataList.taskTypeKey == 3) {
|
|
|
+ this.$set(this.dataList1, 'grade', e)
|
|
|
+ this.$set(this.dataList1, 'gradeKey', this.gradeList[i].constKey)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1011,17 +1077,21 @@ export default {
|
|
|
for (var i = 0; i < this.gradeList.length; i++) {
|
|
|
if (this.gradeList[i].constValue == e) {
|
|
|
this.dataList1.packingMethodKey = this.gradeList[i].constKey
|
|
|
- if(this.dataList1.taskTypeKey==4){
|
|
|
- this.$set(this.dataList,'grade',e)
|
|
|
- this.$set(this.dataList,'gradeKey',this.gradeList[i].constKey)
|
|
|
+ if (this.dataList1.taskTypeKey == 4) {
|
|
|
+ this.$set(this.dataList, 'grade', e)
|
|
|
+ this.$set(this.dataList, 'gradeKey', this.gradeList[i].constKey)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
selectstorageType(e) {
|
|
|
- switch(e){
|
|
|
- case "采购出库": this.flag = 0;break
|
|
|
- case "销售出库": this.flag = 1;break
|
|
|
+ switch (e) {
|
|
|
+ case '采购出库':
|
|
|
+ this.flag = 0
|
|
|
+ break
|
|
|
+ case '销售出库':
|
|
|
+ this.flag = 1
|
|
|
+ break
|
|
|
}
|
|
|
for (var i = 0; i < this.storageType.length; i++) {
|
|
|
if (this.storageType[i].constValue == e) {
|
|
@@ -1030,9 +1100,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
selectstorageType1(e) {
|
|
|
- switch(e){
|
|
|
- case "采购入库": this.flag = 0;break
|
|
|
- case "退库": this.flag = 2;break
|
|
|
+ switch (e) {
|
|
|
+ case '采购入库':
|
|
|
+ this.flag = 0
|
|
|
+ break
|
|
|
+ case '退库':
|
|
|
+ this.flag = 2
|
|
|
+ break
|
|
|
}
|
|
|
for (var i = 0; i < this.storageType1.length; i++) {
|
|
|
if (this.storageType1[i].constValue == e) {
|
|
@@ -1062,11 +1136,11 @@ export default {
|
|
|
} else if (this.dataList.taskTypeKey == 2) {
|
|
|
this.inOutTaskNo1 = 'RK' + this.getdate() + this.verifyinit()
|
|
|
} else if (this.dataList.taskTypeKey == 3) {
|
|
|
- var random=this.getdate() + this.verifyinit()
|
|
|
+ var random = this.getdate() + this.verifyinit()
|
|
|
this.inOutTaskNo = 'YKC' + random
|
|
|
this.inOutTaskNo1 = 'YKR' + random
|
|
|
} else if (this.dataList.taskTypeKey == 4) {
|
|
|
- var random=this.getdate() + this.verifyinit()
|
|
|
+ var random = this.getdate() + this.verifyinit()
|
|
|
this.inOutTaskNo = 'TCC' + random
|
|
|
this.inOutTaskNo1 = 'TCR' + random
|
|
|
}
|
|
@@ -1076,29 +1150,28 @@ export default {
|
|
|
this.tasknumber()
|
|
|
}
|
|
|
this.dataList1.taskTypeKey = e
|
|
|
- if(this.dataList.taskTypeKey==1){
|
|
|
- this.dataList.inOutType='销售出库'
|
|
|
- this.dataList.inOutTypeKey='1'
|
|
|
+ if (this.dataList.taskTypeKey == 1) {
|
|
|
+ this.dataList.inOutType = '销售出库'
|
|
|
+ this.dataList.inOutTypeKey = '1'
|
|
|
this.flag = 1
|
|
|
}
|
|
|
- if(this.dataList1.taskTypeKey==2){
|
|
|
- this.dataList1.inOutType='采购入库'
|
|
|
- this.dataList1.inOutTypeKey='1'
|
|
|
+ if (this.dataList1.taskTypeKey == 2) {
|
|
|
+ this.dataList1.inOutType = '采购入库'
|
|
|
+ this.dataList1.inOutTypeKey = '1'
|
|
|
this.flag = 0
|
|
|
- }
|
|
|
- else if(this.dataList1.taskTypeKey==3){
|
|
|
- this.disabled=true
|
|
|
- this.dataList1.inOutType='移库入库'
|
|
|
- this.dataList1.inOutTypeKey='3'
|
|
|
- this.dataList.inOutType='移库出库'
|
|
|
- this.dataList.inOutTypeKey='3'
|
|
|
- }else if(this.dataList1.taskTypeKey==4){
|
|
|
- this.disabled=true
|
|
|
- this.dataList1.inOutType='退库'
|
|
|
- this.dataList1.inOutTypeKey='6'
|
|
|
- this.dataList.inOutType='销售出库'
|
|
|
+ } else if (this.dataList1.taskTypeKey == 3) {
|
|
|
+ this.disabled = true
|
|
|
+ this.dataList1.inOutType = '移库入库'
|
|
|
+ this.dataList1.inOutTypeKey = '3'
|
|
|
+ this.dataList.inOutType = '移库出库'
|
|
|
+ this.dataList.inOutTypeKey = '3'
|
|
|
+ } else if (this.dataList1.taskTypeKey == 4) {
|
|
|
+ this.disabled = true
|
|
|
+ this.dataList1.inOutType = '退库'
|
|
|
+ this.dataList1.inOutTypeKey = '6'
|
|
|
+ this.dataList.inOutType = '销售出库'
|
|
|
this.flag = 2
|
|
|
- this.dataList.inOutTypeKey='1'
|
|
|
+ this.dataList.inOutTypeKey = '1'
|
|
|
}
|
|
|
},
|
|
|
GetRandomNum(Min, Max) {
|
|
@@ -1107,17 +1180,17 @@ export default {
|
|
|
return Min + Math.round(Rand * Range)
|
|
|
},
|
|
|
getList() {
|
|
|
- this.tasknumber()
|
|
|
- this.$set(this.dataList,'inOutType','销售出库')
|
|
|
- this.$set(this.dataList,'inOutTypeKey','1')
|
|
|
- this.$set(this.dataList,'goodsName','玉米')
|
|
|
- this.$set(this.dataList,'goodsNameKey','1')
|
|
|
- this.$set(this.dataList,'grade','一等品')
|
|
|
- this.$set(this.dataList,'gradeKey','1')
|
|
|
- this.$set(this.dataList1,'goodsName','玉米')
|
|
|
- this.$set(this.dataList1,'goodsNameKey','1')
|
|
|
- this.$set(this.dataList1,'grade','一等品')
|
|
|
- this.$set(this.dataList1,'gradeKey','1')
|
|
|
+ this.tasknumber()
|
|
|
+ this.$set(this.dataList, 'inOutType', '销售出库')
|
|
|
+ this.$set(this.dataList, 'inOutTypeKey', '1')
|
|
|
+ this.$set(this.dataList, 'goodsName', '玉米')
|
|
|
+ this.$set(this.dataList, 'goodsNameKey', '1')
|
|
|
+ this.$set(this.dataList, 'grade', '一等品')
|
|
|
+ this.$set(this.dataList, 'gradeKey', '1')
|
|
|
+ this.$set(this.dataList1, 'goodsName', '玉米')
|
|
|
+ this.$set(this.dataList1, 'goodsNameKey', '1')
|
|
|
+ this.$set(this.dataList1, 'grade', '一等品')
|
|
|
+ this.$set(this.dataList1, 'gradeKey', '1')
|
|
|
// 货名
|
|
|
pullDown({ constId: 'CON2' })
|
|
|
.toPromise()
|
|
@@ -1142,7 +1215,7 @@ export default {
|
|
|
})
|
|
|
xialaNo({
|
|
|
compId: this.compId,
|
|
|
- flag: this.flag
|
|
|
+ flag: this.flag,
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -1227,38 +1300,29 @@ export default {
|
|
|
this.historyList = response
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
- async exportlist() {
|
|
|
- const { data } = await export1(
|
|
|
- {
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
- contractType: this.contractType,
|
|
|
- currentPage: this.currentPage,
|
|
|
- pageSize: this.pageSize,
|
|
|
- searchType: this.searchType,
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
- startDate: this.startDate,
|
|
|
- endDate: this.endDate,
|
|
|
- },
|
|
|
- {},
|
|
|
- { responseType: 'blob' }
|
|
|
- ).toPromise()
|
|
|
- downloadFile({
|
|
|
- res: data,
|
|
|
- fileName: `${
|
|
|
- this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
- }_采购合同`,
|
|
|
- type: 'xls',
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // deletecontract(){},
|
|
|
- //删除
|
|
|
- approve() {},
|
|
|
- listQuery() {},
|
|
|
- total() {},
|
|
|
- clearfiltQuery() {},
|
|
|
- selectCrtDuty() {},
|
|
|
+ // async exportlist() {
|
|
|
+ // const { data } = await export1(
|
|
|
+ // {
|
|
|
+ // compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ // contractType: this.contractType,
|
|
|
+ // currentPage: this.currentPage,
|
|
|
+ // pageSize: this.pageSize,
|
|
|
+ // searchType: this.searchType,
|
|
|
+ // searchKeyWord: this.searchKeyWord,
|
|
|
+ // startDate: this.startDate,
|
|
|
+ // endDate: this.endDate,
|
|
|
+ // },
|
|
|
+ // {},
|
|
|
+ // { responseType: 'blob' }
|
|
|
+ // ).toPromise()
|
|
|
+ // downloadFile({
|
|
|
+ // res: data,
|
|
|
+ // fileName: `${
|
|
|
+ // this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
+ // }_采购合同`,
|
|
|
+ // type: 'xls',
|
|
|
+ // })
|
|
|
+ // },
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -1395,38 +1459,36 @@ export default {
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
}
|
|
|
-.annu{
|
|
|
+.annu {
|
|
|
height: 81px;
|
|
|
- background: #FFFFFF;
|
|
|
+ background: #ffffff;
|
|
|
border-radius: 4px;
|
|
|
}
|
|
|
-
|
|
|
-.basicInformation
|
|
|
-.el-form-item {
|
|
|
- width: 50.3333%;
|
|
|
- border: none;
|
|
|
- margin: 0;
|
|
|
+
|
|
|
+.basicInformation .el-form-item {
|
|
|
+ width: 50.3333%;
|
|
|
+ border: none;
|
|
|
+ margin: 0;
|
|
|
}
|
|
|
-.huom{
|
|
|
+.huom {
|
|
|
width: 100px;
|
|
|
-
|
|
|
}
|
|
|
-.el-form{
|
|
|
+.el-form {
|
|
|
font-size: 14px;
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
font-weight: 400;
|
|
|
- color: #8890B1;
|
|
|
+ color: #8890b1;
|
|
|
line-height: 16px;
|
|
|
}
|
|
|
-.a{
|
|
|
+.a {
|
|
|
margin-left: -32px;
|
|
|
}
|
|
|
- .el-radio-group {
|
|
|
- margin-left: 251px;
|
|
|
+.el-radio-group {
|
|
|
+ margin-left: 251px;
|
|
|
}
|
|
|
-.ding{
|
|
|
+.ding {
|
|
|
height: 23px;
|
|
|
- background: #E8ECF6;
|
|
|
+ background: #e8ecf6;
|
|
|
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
|
|
|
}
|
|
|
.winseaview-view {
|
|
@@ -1437,18 +1499,18 @@ export default {
|
|
|
height: 93vh;
|
|
|
}
|
|
|
.el-radio-group {
|
|
|
- font-size: 0;
|
|
|
- margin-top: 20px;
|
|
|
+ font-size: 0;
|
|
|
+ margin-top: 20px;
|
|
|
}
|
|
|
/deep/.el-form {
|
|
|
- padding: 0 15%;
|
|
|
- display: -webkit-box;
|
|
|
- display: -ms-flexbox;
|
|
|
- display: flex;
|
|
|
- -ms-flex-wrap: wrap;
|
|
|
- flex-wrap: wrap;
|
|
|
- margin-left: 130px;
|
|
|
- margin-top: 15px;
|
|
|
- width: 110%;
|
|
|
+ padding: 0 15%;
|
|
|
+ display: -webkit-box;
|
|
|
+ display: -ms-flexbox;
|
|
|
+ display: flex;
|
|
|
+ -ms-flex-wrap: wrap;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ margin-left: 130px;
|
|
|
+ margin-top: 15px;
|
|
|
+ width: 110%;
|
|
|
}
|
|
|
</style>
|