|
@@ -6,77 +6,47 @@
|
|
|
<h2 class="bg-left title">审核出入库任务</h2>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="bg-right">
|
|
|
- <el-button
|
|
|
- class="bg-bottom"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="returnsales()"
|
|
|
- >
|
|
|
- <img
|
|
|
- width="6"
|
|
|
- height="10"
|
|
|
- style="vertical-align: bottom; margin-right: 3px"
|
|
|
- src="../../../public/img/lujing.png"
|
|
|
- alt
|
|
|
- />返回
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">
|
|
|
+ <img width="6" height="10" style="vertical-align: bottom; margin-right: 3px"
|
|
|
+ src="../../../public/img/lujing.png" alt />返回
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div class="basicInformation">
|
|
|
<div class="annu">
|
|
|
- <el-radio-group
|
|
|
- @change="tasktypechange"
|
|
|
- v-model="dataList.taskTypeKey"
|
|
|
- ></el-radio-group>
|
|
|
+ <el-radio-group @change="tasktypechange" v-model="dataList.taskTypeKey"></el-radio-group>
|
|
|
<div class="nav">
|
|
|
<span class="ziti">
|
|
|
任务类型:
|
|
|
- <h1
|
|
|
- class="ziti1"
|
|
|
- v-show="
|
|
|
+ <h1 class="ziti1" v-show="
|
|
|
dataList.inOutType == '移库入库' ||
|
|
|
dataList.inOutType == '移库出库'
|
|
|
- "
|
|
|
- >
|
|
|
+ ">
|
|
|
移库任务
|
|
|
</h1>
|
|
|
- <h1
|
|
|
- class="ziti1"
|
|
|
- v-show="
|
|
|
+ <h1 class="ziti1" v-show="
|
|
|
dataList.inOutType == '销售出库' ||
|
|
|
dataList.inOutType == '暂存出库' ||
|
|
|
dataList.inOutType == '贸易服务出库' ||
|
|
|
dataList.inOutType == '采购出库'
|
|
|
- "
|
|
|
- >
|
|
|
+ ">
|
|
|
出库任务
|
|
|
</h1>
|
|
|
- <h1
|
|
|
- class="ziti1"
|
|
|
- v-show="
|
|
|
+ <h1 class="ziti1" v-show="
|
|
|
dataList.inOutType == '采购入库' ||
|
|
|
dataList.inOutType == '暂存入库' ||
|
|
|
dataList.inOutType == '贸易服务入库' ||
|
|
|
dataList.inOutType == '退库'
|
|
|
- "
|
|
|
- >
|
|
|
+ ">
|
|
|
入库任务
|
|
|
</h1>
|
|
|
</span>
|
|
|
</div>
|
|
|
</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>出库任务({{ dataList.inOutTaskNo }})</h3>
|
|
@@ -84,175 +54,80 @@
|
|
|
<el-form ref="dataList" :model="dataList" label-width="140px">
|
|
|
<!-- 仓库名 -->
|
|
|
<el-form-item label="仓库名">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList.warehouseName"
|
|
|
- placeholder="请选择仓库名"
|
|
|
- class="typeselect"
|
|
|
- @change="selectwarehouseName"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in warehouseNameList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.warehouseName"
|
|
|
- :value="item.warehouseName"
|
|
|
- />
|
|
|
+ <el-select disabled v-model="dataList.warehouseName" placeholder="请选择仓库名" class="typeselect"
|
|
|
+ @change="selectwarehouseName" filterable clearable>
|
|
|
+ <el-option v-for="item in warehouseNameList" :key="item.constKey" :label="item.warehouseName"
|
|
|
+ :value="item.warehouseName" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 出库类型 -->
|
|
|
<el-form-item label="出库类型">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList.inOutType"
|
|
|
- placeholder="请选择出库类型"
|
|
|
- class="typeselect"
|
|
|
- @change="selectstorageType"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in storageType"
|
|
|
- :key="item.constKey"
|
|
|
- v-if="
|
|
|
+ <el-select disabled v-model="dataList.inOutType" placeholder="请选择出库类型" class="typeselect"
|
|
|
+ @change="selectstorageType" filterable clearable>
|
|
|
+ <el-option v-for="item in storageType" :key="item.constKey" v-if="
|
|
|
(dataList.taskTypeKey == 1 &&
|
|
|
item.constValue != '移库出库') ||
|
|
|
(dataList.taskTypeKey == 3 &&
|
|
|
item.constValue == '移库出库') ||
|
|
|
(dataList.taskTypeKey == 4 && item.constValue == '销售出库')
|
|
|
- "
|
|
|
- :label="item.constValue"
|
|
|
- :value="item.constValue"
|
|
|
- />
|
|
|
+ " :label="item.constValue" :value="item.constValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 合同编号 -->
|
|
|
<el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- @change="changecontract"
|
|
|
- v-model="dataList.contractNo"
|
|
|
- placeholder="请输入合同编号"
|
|
|
- class="typeselect"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in contractNoList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.contractNo"
|
|
|
- :value="item.contractNo"
|
|
|
- ></el-option>
|
|
|
+ <el-select disabled @change="changecontract" v-model="dataList.contractNo" placeholder="请输入合同编号"
|
|
|
+ class="typeselect" filterable clearable>
|
|
|
+ <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
|
|
|
+ :value="item.contractNo"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- @change="selectTaskNo"
|
|
|
- v-model="dataList.moveTaskNo"
|
|
|
- placeholder="请输入移库任务编号"
|
|
|
- class="typeselect"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in contractNoList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.contractNo"
|
|
|
- :value="item.contractNo"
|
|
|
- ></el-option>
|
|
|
+ <el-select disabled @change="selectTaskNo" v-model="dataList.moveTaskNo" placeholder="请输入移库任务编号"
|
|
|
+ class="typeselect" filterable clearable>
|
|
|
+ <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
|
|
|
+ :value="item.contractNo"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 货名 -->
|
|
|
<el-form-item label="货名" class="huom">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList.goodsName"
|
|
|
- placeholder="货名"
|
|
|
- class="huom"
|
|
|
- @change="selectgoodsName"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in goodnameList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.constValue"
|
|
|
- :value="item.constValue"
|
|
|
- ></el-option>
|
|
|
+ <el-select disabled v-model="dataList.goodsName" placeholder="货名" class="huom" @change="selectgoodsName"
|
|
|
+ filterable clearable>
|
|
|
+ <el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
|
|
|
+ :value="item.constValue"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--重量(吨)-->
|
|
|
<el-form-item label="重量(吨)">
|
|
|
- <el-input
|
|
|
- disabled
|
|
|
- v-model="dataList.weight"
|
|
|
- placeholder="请输入重量(吨)"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input disabled v-model="dataList.weight" placeholder="请输入重量(吨)" maxlength="120" size="small"
|
|
|
+ class="huom" />
|
|
|
</el-form-item>
|
|
|
<!-- 品级 -->
|
|
|
<el-form-item label="品级">
|
|
|
- <el-select
|
|
|
- v-model="dataList.grade"
|
|
|
- placeholder
|
|
|
- class="typeselect"
|
|
|
- @change="selectpackingMethod"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in gradeList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.constValue"
|
|
|
- :value="item.constValue"
|
|
|
- />
|
|
|
+ <el-select v-model="dataList.grade" placeholder class="typeselect" @change="selectpackingMethod" filterable
|
|
|
+ clearable>
|
|
|
+ <el-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
|
|
|
+ :value="item.constValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--容重(克/升)>=-->
|
|
|
<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
|
|
|
- <el-input
|
|
|
- @input="bulkDensitychange"
|
|
|
- v-model="dataList.bulkDensity"
|
|
|
- placeholder="请输入容重"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input @input="bulkDensitychange" v-model="dataList.bulkDensity" placeholder="请输入容重" maxlength="120"
|
|
|
+ size="small" class="huom" />
|
|
|
</el-form-item>
|
|
|
<!--水分(%)<=-->
|
|
|
<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
|
|
|
- <el-input
|
|
|
- @input="waterContentchange"
|
|
|
- v-model="dataList.waterContent"
|
|
|
- placeholder="请输入水分占比"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input @input="waterContentchange" v-model="dataList.waterContent" placeholder="请输入水分占比" maxlength="120"
|
|
|
+ size="small" class="huom" />
|
|
|
</el-form-item>
|
|
|
<!--单价(元/吨)-->
|
|
|
<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
|
|
|
- <el-input
|
|
|
- @input="unitPricechange"
|
|
|
- v-model="dataList.unitPrice"
|
|
|
- placeholder="请输入单价"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input @input="unitPricechange" v-model="dataList.unitPrice" placeholder="请输入单价" maxlength="120"
|
|
|
+ size="small" class="huom" />
|
|
|
</el-form-item>
|
|
|
<!--预计出库日期-->
|
|
|
- <el-form-item
|
|
|
- label="预计出库日期"
|
|
|
- span="1"
|
|
|
- prop="predictDate"
|
|
|
- class="deliverydate"
|
|
|
- >
|
|
|
- <el-date-picker
|
|
|
- disabled
|
|
|
- v-model="dataList.predictDate"
|
|
|
- type="date"
|
|
|
- placeholder="请选择预计出库日期"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- />
|
|
|
+ <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
|
|
|
+ <el-date-picker disabled v-model="dataList.predictDate" type="date" placeholder="请选择预计出库日期"
|
|
|
+ value-format="yyyy-MM-dd" />
|
|
|
</el-form-item>
|
|
|
<!--预估运费(元/吨)-->
|
|
|
<!-- <el-form-item label="预估运费(元/吨)" span="1">
|
|
@@ -265,48 +140,21 @@
|
|
|
</el-form-item> -->
|
|
|
<!--收货人-->
|
|
|
<el-form-item label="发货人">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList.agent"
|
|
|
- placeholder="请选择发货人"
|
|
|
- @change="selectstaff"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.staffName"
|
|
|
- :value="item.staffName"
|
|
|
- />
|
|
|
+ <el-select disabled v-model="dataList.agent" placeholder="请选择发货人" @change="selectstaff" filterable
|
|
|
+ clearable>
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--业务描述=-->
|
|
|
- <el-form-item
|
|
|
- v-if="dataList.taskTypeKey != 3"
|
|
|
- label="业务描述"
|
|
|
- span="1"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="dataList.businessDescribe"
|
|
|
- placeholder="请输入业务描述,不超过150字"
|
|
|
- maxlength="150"
|
|
|
- size="large"
|
|
|
- class="yewu"
|
|
|
- />
|
|
|
+ <el-form-item v-if="dataList.taskTypeKey != 3" label="业务描述" span="1">
|
|
|
+ <el-input v-model="dataList.businessDescribe" placeholder="请输入业务描述,不超过150字" maxlength="150" size="large"
|
|
|
+ class="yewu" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="仓位号(选填)" span="1">
|
|
|
- <el-select
|
|
|
- v-model="dataList.binNumber"
|
|
|
- placeholder="请输入仓位号"
|
|
|
- filterable clearable
|
|
|
- @change="binNumberChange1"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in binNumberList1"
|
|
|
- :Key="index"
|
|
|
- :label="item.binNumber"
|
|
|
- :value="item.binNumber"
|
|
|
- >
|
|
|
+ <el-select v-model="dataList.binNumber" placeholder="请输入仓位号" filterable clearable
|
|
|
+ @change="binNumberChange1">
|
|
|
+ <el-option v-for="(item, index) in binNumberList1" :Key="index" :label="item.binNumber"
|
|
|
+ :value="item.binNumber">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<!-- <el-input
|
|
@@ -320,201 +168,91 @@
|
|
|
</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
|
|
|
- />
|
|
|
+ <img style="position: relative; top: 40px; left: 300px" width="19" height="19"
|
|
|
+ src="../../../public/img/cangku.png" alt />
|
|
|
<div class="small-title">
|
|
|
<h3>
|
|
|
入库任务({{ dataList1.inOutTaskNo }})
|
|
|
<span v-if="deletetask" style="color: red">已删除</span>
|
|
|
</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="仓库名" v-if="dataList1.inOutType == '移库入库'">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList1.warehouseName"
|
|
|
- placeholder="请选择仓库名"
|
|
|
- class="typeselect"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in warehouseNameList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.warehouseName"
|
|
|
- :value="item.warehouseName"
|
|
|
- />
|
|
|
+ <el-select disabled v-model="dataList1.warehouseName" placeholder="请选择仓库名" class="typeselect" filterable
|
|
|
+ clearable>
|
|
|
+ <el-option v-for="item in warehouseNameList" :key="item.constKey" :label="item.warehouseName"
|
|
|
+ :value="item.warehouseName" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 出库类型 -->
|
|
|
- <el-form-item
|
|
|
- label="入库类型"
|
|
|
- v-if="dataList1.inOutType == '移库入库'"
|
|
|
- >
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList1.inOutType"
|
|
|
- placeholder="请选择入库类型"
|
|
|
- class="typeselect"
|
|
|
- @change="selectstorageType1"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in storageType1"
|
|
|
- :key="item.constKey"
|
|
|
- v-if="
|
|
|
+ <el-form-item label="入库类型" v-if="dataList1.inOutType == '移库入库'">
|
|
|
+ <el-select disabled v-model="dataList1.inOutType" placeholder="请选择入库类型" class="typeselect"
|
|
|
+ @change="selectstorageType1" filterable clearable>
|
|
|
+ <el-option v-for="item in storageType1" :key="item.constKey" v-if="
|
|
|
(dataList1.taskTypeKey == 2 &&
|
|
|
item.constValue != '移库入库') ||
|
|
|
(dataList1.taskTypeKey == 3 &&
|
|
|
item.constValue == '移库入库') ||
|
|
|
(dataList1.taskTypeKey == 4 && item.constValue == '退库')
|
|
|
- "
|
|
|
- :label="item.constValue"
|
|
|
- :value="item.constValue"
|
|
|
- />
|
|
|
+ " :label="item.constValue" :value="item.constValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 合同编号 -->
|
|
|
<el-form-item v-if="dataList1.taskTypeKey != 3" label="合同编号">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- @change="changecontract1"
|
|
|
- v-model="dataList1.contractNo"
|
|
|
- placeholder="请输入合同编号"
|
|
|
- class="typeselect"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in contractNoList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.contractNo"
|
|
|
- :value="item.contractNo"
|
|
|
- ></el-option>
|
|
|
+ <el-select disabled @change="changecontract1" v-model="dataList1.contractNo" placeholder="请输入合同编号"
|
|
|
+ class="typeselect" filterable clearable>
|
|
|
+ <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
|
|
|
+ :value="item.contractNo"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="dataList1.taskTypeKey == 3" label="移库任务编号">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList1.moveTaskNo"
|
|
|
- placeholder="请输入移库任务编号"
|
|
|
- class="typeselect"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in contractNoList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.contractNo"
|
|
|
- :value="item.contractNo"
|
|
|
- ></el-option>
|
|
|
+ <el-select disabled v-model="dataList1.moveTaskNo" placeholder="请输入移库任务编号" class="typeselect" filterable
|
|
|
+ clearable>
|
|
|
+ <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
|
|
|
+ :value="item.contractNo"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 货名 -->
|
|
|
<el-form-item label="货名" class="huom">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList1.goodsName"
|
|
|
- placeholder="货名"
|
|
|
- class="huom"
|
|
|
- @change="selectgoodsName1"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in goodnameList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.constValue"
|
|
|
- :value="item.constValue"
|
|
|
- ></el-option>
|
|
|
+ <el-select disabled v-model="dataList1.goodsName" placeholder="货名" class="huom" @change="selectgoodsName1"
|
|
|
+ filterable clearable>
|
|
|
+ <el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
|
|
|
+ :value="item.constValue"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--重量(吨)-->
|
|
|
<el-form-item label="重量(吨)">
|
|
|
- <el-input
|
|
|
- @input="weightchange"
|
|
|
- v-model="dataList1.weight"
|
|
|
- placeholder="请输入重量(吨)"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input @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"
|
|
|
- v-model="dataList1.grade"
|
|
|
- placeholder
|
|
|
- class="typeselect"
|
|
|
- @change="selectpackingMethod1"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in gradeList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.constValue"
|
|
|
- :value="item.constValue"
|
|
|
- />
|
|
|
+ <el-select :disabled="dataList.taskTypeKey == 3" v-model="dataList1.grade" placeholder class="typeselect"
|
|
|
+ @change="selectpackingMethod1" filterable clearable>
|
|
|
+ <el-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
|
|
|
+ :value="item.constValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--容重(克/升)>=-->
|
|
|
<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
|
|
|
- <el-input
|
|
|
- @input="bulkDensitychange"
|
|
|
- :disabled="dataList.taskTypeKey == 3"
|
|
|
- v-model="dataList1.bulkDensity"
|
|
|
- placeholder="请输入容重"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input @input="bulkDensitychange" :disabled="dataList.taskTypeKey == 3" v-model="dataList1.bulkDensity"
|
|
|
+ placeholder="请输入容重" maxlength="120" size="small" class="huom" />
|
|
|
</el-form-item>
|
|
|
<!--水分(%)<=-->
|
|
|
<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
|
|
|
- <el-input
|
|
|
- @input="waterContentchange"
|
|
|
- :disabled="dataList.taskTypeKey == 3"
|
|
|
- v-model="dataList1.waterContent"
|
|
|
- placeholder="请输入水分占比"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input @input="waterContentchange" :disabled="dataList.taskTypeKey == 3" v-model="dataList1.waterContent"
|
|
|
+ placeholder="请输入水分占比" maxlength="120" size="small" class="huom" />
|
|
|
</el-form-item>
|
|
|
<!--单价(元/吨)-->
|
|
|
<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
|
|
|
- <el-input
|
|
|
- @input="unitPricechange"
|
|
|
- :disabled="dataList.taskTypeKey == 3"
|
|
|
- v-model="dataList1.unitPrice"
|
|
|
- placeholder="请输入单价"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input @input="unitPricechange" :disabled="dataList.taskTypeKey == 3" v-model="dataList1.unitPrice"
|
|
|
+ placeholder="请输入单价" maxlength="120" size="small" class="huom" />
|
|
|
</el-form-item>
|
|
|
<!--预计出库日期-->
|
|
|
- <el-form-item
|
|
|
- label="预计入库日期"
|
|
|
- span="1"
|
|
|
- prop="predictDate"
|
|
|
- class="deliverydate"
|
|
|
- >
|
|
|
- <el-date-picker
|
|
|
- disabled
|
|
|
- v-model="dataList1.predictDate"
|
|
|
- type="date"
|
|
|
- placeholder="请选择预计入库日期"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- />
|
|
|
+ <el-form-item label="预计入库日期" span="1" prop="predictDate" class="deliverydate">
|
|
|
+ <el-date-picker disabled v-model="dataList1.predictDate" type="date" placeholder="请选择预计入库日期"
|
|
|
+ value-format="yyyy-MM-dd" />
|
|
|
</el-form-item>
|
|
|
<!--预估运费(元/吨)-->
|
|
|
<!-- <el-form-item label="预估运费(元/吨)" span="1">
|
|
@@ -527,44 +265,20 @@
|
|
|
</el-form-item> -->
|
|
|
<!--收货人-->
|
|
|
<el-form-item label="收货人">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList1.agent"
|
|
|
- placeholder="请选择收货人"
|
|
|
- filterable
|
|
|
- @change="selectstaff1"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.staffName"
|
|
|
- :value="item.staffName"
|
|
|
- />
|
|
|
+ <el-select disabled v-model="dataList1.agent" placeholder="请选择收货人" filterable @change="selectstaff1"
|
|
|
+ filterable clearable>
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--业务描述=-->
|
|
|
<el-form-item v-if="dataList.taskTypeKey != 4" label="业务描述">
|
|
|
- <el-input
|
|
|
- v-model="dataList1.businessDescribe"
|
|
|
- placeholder="请输入业务描述,不超过150字"
|
|
|
- maxlength="150"
|
|
|
- size="large"
|
|
|
- />
|
|
|
+ <el-input v-model="dataList1.businessDescribe" placeholder="请输入业务描述,不超过150字" maxlength="150" size="large" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="仓位号(选填)" span="1">
|
|
|
- <el-select
|
|
|
- v-model="dataList1.binNumber"
|
|
|
- placeholder="请输入仓位号"
|
|
|
- @change="binNumberChange"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in binNumberList"
|
|
|
- :Key="index"
|
|
|
- :label="item.binNumber"
|
|
|
- :value="item.binNumber"
|
|
|
- >
|
|
|
+ <el-select v-model="dataList1.binNumber" placeholder="请输入仓位号" @change="binNumberChange" filterable
|
|
|
+ clearable>
|
|
|
+ <el-option v-for="(item, index) in binNumberList" :Key="index" :label="item.binNumber"
|
|
|
+ :value="item.binNumber">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<!-- <el-input
|
|
@@ -580,184 +294,87 @@
|
|
|
<div v-if="dataList.taskTypeKey == 4" class="center1">
|
|
|
<!--出库=-->
|
|
|
<div class="small-title">
|
|
|
- <img
|
|
|
- style="position: relative; top: 40px; left: -22px"
|
|
|
- width="19"
|
|
|
- height="19"
|
|
|
- src="../../../public/img/cangku.png"
|
|
|
- alt
|
|
|
- />
|
|
|
+ <img style="position: relative; top: 40px; left: -22px" width="19" height="19"
|
|
|
+ src="../../../public/img/cangku.png" alt />
|
|
|
<h3>出库任务({{ inOutTaskNo }})</h3>
|
|
|
</div>
|
|
|
<el-form ref="dataList" :model="dataList" label-width="140px">
|
|
|
<!-- 仓库名 -->
|
|
|
<el-form-item label="仓库名">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList.warehouseName"
|
|
|
- placeholder="请选择仓库名"
|
|
|
- class="typeselect"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in warehouseNameList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.warehouseName"
|
|
|
- :value="item.warehouseName"
|
|
|
- />
|
|
|
+ <el-select disabled v-model="dataList.warehouseName" placeholder="请选择仓库名" class="typeselect" filterable
|
|
|
+ clearable>
|
|
|
+ <el-option v-for="item in warehouseNameList" :key="item.constKey" :label="item.warehouseName"
|
|
|
+ :value="item.warehouseName" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 出库类型 -->
|
|
|
<el-form-item label="出库类型">
|
|
|
- <el-select
|
|
|
- :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
|
- v-model="dataList.inOutType"
|
|
|
- placeholder="请选择出库类型"
|
|
|
- class="typeselect"
|
|
|
- @change="selectstorageType"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in storageType"
|
|
|
- :key="item.constKey"
|
|
|
- v-if="
|
|
|
+ <el-select :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4" v-model="dataList.inOutType"
|
|
|
+ placeholder="请选择出库类型" class="typeselect" @change="selectstorageType" filterable clearable>
|
|
|
+ <el-option v-for="item in storageType" :key="item.constKey" v-if="
|
|
|
(dataList.taskTypeKey == 1 &&
|
|
|
item.constValue != '移库出库') ||
|
|
|
(dataList.taskTypeKey == 3 &&
|
|
|
item.constValue == '移库出库') ||
|
|
|
(dataList.taskTypeKey == 4 && item.constValue == '销售出库')
|
|
|
- "
|
|
|
- :label="item.constValue"
|
|
|
- :value="item.constValue"
|
|
|
- />
|
|
|
+ " :label="item.constValue" :value="item.constValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 合同编号 -->
|
|
|
<el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList.contractNo"
|
|
|
- placeholder="请输入合同编号"
|
|
|
- class="typeselect"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in contractNoList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.contractNo"
|
|
|
- :value="item.contractNo"
|
|
|
- ></el-option>
|
|
|
+ <el-select disabled v-model="dataList.contractNo" placeholder="请输入合同编号" class="typeselect" filterable
|
|
|
+ clearable>
|
|
|
+ <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
|
|
|
+ :value="item.contractNo"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
|
|
|
- <el-select
|
|
|
- @change="selectTaskNo"
|
|
|
- v-model="dataList.moveTaskNo"
|
|
|
- placeholder="请输入移库任务编号"
|
|
|
- class="typeselect"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in contractNoList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.contractNo"
|
|
|
- :value="item.contractNo"
|
|
|
- ></el-option>
|
|
|
+ <el-select @change="selectTaskNo" v-model="dataList.moveTaskNo" placeholder="请输入移库任务编号" class="typeselect"
|
|
|
+ filterable clearable>
|
|
|
+ <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
|
|
|
+ :value="item.contractNo"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 货名 -->
|
|
|
<el-form-item label="货名" class="huom">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList.goodsName"
|
|
|
- placeholder="货名"
|
|
|
- class="huom"
|
|
|
- @change="selectgoodsName"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in goodnameList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.constValue"
|
|
|
- :value="item.constValue"
|
|
|
- ></el-option>
|
|
|
+ <el-select disabled v-model="dataList.goodsName" placeholder="货名" class="huom" @change="selectgoodsName"
|
|
|
+ filterable clearable>
|
|
|
+ <el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
|
|
|
+ :value="item.constValue"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--重量(吨)-->
|
|
|
<el-form-item label="重量(吨)">
|
|
|
- <el-input
|
|
|
- disabled
|
|
|
- v-model="dataList.weight"
|
|
|
- placeholder="请输入重量(吨)"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input disabled v-model="dataList.weight" placeholder="请输入重量(吨)" maxlength="120" size="small"
|
|
|
+ class="huom" />
|
|
|
</el-form-item>
|
|
|
<!-- 品级 -->
|
|
|
<el-form-item label="品级">
|
|
|
- <el-select
|
|
|
- disabled
|
|
|
- v-model="dataList.grade"
|
|
|
- placeholder
|
|
|
- class="typeselect"
|
|
|
- @change="selectpackingMethod"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in gradeList"
|
|
|
- :key="item.constKey"
|
|
|
- :label="item.constValue"
|
|
|
- :value="item.constValue"
|
|
|
- />
|
|
|
+ <el-select disabled v-model="dataList.grade" placeholder class="typeselect" @change="selectpackingMethod"
|
|
|
+ filterable clearable>
|
|
|
+ <el-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
|
|
|
+ :value="item.constValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--容重(克/升)>=-->
|
|
|
<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
|
|
|
- <el-input
|
|
|
- disabled
|
|
|
- v-model="dataList.bulkDensity"
|
|
|
- placeholder="请输入容重"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input disabled v-model="dataList.bulkDensity" placeholder="请输入容重" maxlength="120" size="small"
|
|
|
+ class="huom" />
|
|
|
</el-form-item>
|
|
|
<!--水分(%)<=-->
|
|
|
<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
|
|
|
- <el-input
|
|
|
- disabled
|
|
|
- v-model="dataList.waterContent"
|
|
|
- placeholder="请输入水分占比"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input disabled v-model="dataList.waterContent" placeholder="请输入水分占比" maxlength="120" size="small"
|
|
|
+ class="huom" />
|
|
|
</el-form-item>
|
|
|
<!--单价(元/吨)-->
|
|
|
<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
|
|
|
- <el-input
|
|
|
- disabled
|
|
|
- v-model="dataList.unitPrice"
|
|
|
- placeholder="请输入单价"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- class="huom"
|
|
|
- />
|
|
|
+ <el-input disabled v-model="dataList.unitPrice" placeholder="请输入单价" maxlength="120" size="small"
|
|
|
+ class="huom" />
|
|
|
</el-form-item>
|
|
|
<!--预计出库日期-->
|
|
|
- <el-form-item
|
|
|
- label="预计出库日期"
|
|
|
- span="1"
|
|
|
- prop="predictDate"
|
|
|
- class="deliverydate"
|
|
|
- >
|
|
|
- <el-date-picker
|
|
|
- v-model="dataList.predictDate"
|
|
|
- type="date"
|
|
|
- placeholder="请选择预计出库日期"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- />
|
|
|
+ <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
|
|
|
+ <el-date-picker v-model="dataList.predictDate" type="date" placeholder="请选择预计出库日期"
|
|
|
+ value-format="yyyy-MM-dd" />
|
|
|
</el-form-item>
|
|
|
<!--预估运费(元/吨)-->
|
|
|
<!-- <el-form-item label="预估运费(元/吨)" span="1">
|
|
@@ -770,28 +387,13 @@
|
|
|
</el-form-item> -->
|
|
|
<!--发货人-->
|
|
|
<el-form-item label="发货人">
|
|
|
- <el-select
|
|
|
- v-model="dataList.agent"
|
|
|
- placeholder="请选择发货人"
|
|
|
- @change="selectstaff"
|
|
|
- filterable clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.staffName"
|
|
|
- :value="item.staffName"
|
|
|
- />
|
|
|
+ <el-select v-model="dataList.agent" placeholder="请选择发货人" @change="selectstaff" filterable clearable>
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!--业务描述=-->
|
|
|
<el-form-item label="业务描述">
|
|
|
- <el-input
|
|
|
- v-model="dataList.businessDescribe"
|
|
|
- placeholder="请输入业务描述,不超过150字"
|
|
|
- maxlength="150"
|
|
|
- size="large"
|
|
|
- />
|
|
|
+ <el-input v-model="dataList.businessDescribe" placeholder="请输入业务描述,不超过150字" maxlength="150" size="large" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -799,23 +401,11 @@
|
|
|
|
|
|
<!-- 提交 -->
|
|
|
<div style="text-align: right; padding: 10px" class="center">
|
|
|
- <el-button class="bg-bottom" type="primary" size="small" @click="reject()"
|
|
|
- >驳回</el-button
|
|
|
- >
|
|
|
- <el-button class="bg-bottom" type="primary" size="small" @click="submit()"
|
|
|
- >通过</el-button
|
|
|
- >
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="reject()">驳回</el-button>
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="submit()">通过</el-button>
|
|
|
</div>
|
|
|
- <el-table
|
|
|
- class="wenzi"
|
|
|
- :data="taskhistories"
|
|
|
- style="width: 80%"
|
|
|
- height="180"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- prop="operatorMajorRoleName"
|
|
|
- label="审核人"
|
|
|
- ></el-table-column>
|
|
|
+ <el-table class="wenzi" :data="taskhistories" style="width: 80%" height="180">
|
|
|
+ <el-table-column prop="operatorMajorRoleName" label="审核人"></el-table-column>
|
|
|
<el-table-column prop="inOutTaskNo" label="审核结果">
|
|
|
<template scope="scope">
|
|
|
<span v-if="scope.row.approved">通过</span>
|
|
@@ -825,18 +415,8 @@
|
|
|
<el-table-column prop="createTime" label="审核时间"></el-table-column>
|
|
|
<el-table-column prop="auditMind" label="审核意见"></el-table-column>
|
|
|
</el-table>
|
|
|
- <WinseaContentModal
|
|
|
- v-model="outerVisible"
|
|
|
- title="驳回原因"
|
|
|
- @on-cancel="handleClose"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- :rows="2"
|
|
|
- maxlength="30"
|
|
|
- placeholder="请输入驳回原因,1~30个字"
|
|
|
- v-model="auditMind"
|
|
|
- ></el-input>
|
|
|
+ <WinseaContentModal v-model="outerVisible" title="驳回原因" @on-cancel="handleClose">
|
|
|
+ <el-input type="textarea" :rows="2" maxlength="30" placeholder="请输入驳回原因,1~30个字" v-model="auditMind"></el-input>
|
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="outerVisible = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="disableReasons">确定</el-button>
|
|
@@ -845,889 +425,964 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import {
|
|
|
- getwarehousename,
|
|
|
- xialaNo,
|
|
|
- outexamine,
|
|
|
- getGoodsName,
|
|
|
- warehousetask,
|
|
|
- woekflowhandle,
|
|
|
- gettaskhistories,
|
|
|
- workflowcontent
|
|
|
-} from '@/model/tasksport/index'
|
|
|
-import { pullDown, getstaff } from '@/model/warehouse/index'
|
|
|
-import Pagination from '@/components/Pagination'
|
|
|
-import WsUpload from '@/components/WsUpload'
|
|
|
-// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
|
-import { dayjs, EventBus } from 'base-core-lib'
|
|
|
-import { mapGetters } from 'vuex'
|
|
|
-export default {
|
|
|
- name: 'viewSpareMoney',
|
|
|
- components: {
|
|
|
- WsUpload,
|
|
|
- Pagination,
|
|
|
- },
|
|
|
- watch: {
|
|
|
- // vesselId(val) {
|
|
|
- // this.getList()
|
|
|
- // },
|
|
|
- isShow(val) {
|
|
|
- this.showType = val
|
|
|
+ import {
|
|
|
+ getwarehousename,
|
|
|
+ xialaNo,
|
|
|
+ outexamine,
|
|
|
+ getGoodsName,
|
|
|
+ warehousetask,
|
|
|
+ woekflowhandle,
|
|
|
+ gettaskhistories,
|
|
|
+ workflowcontent
|
|
|
+ } from '@/model/tasksport/index'
|
|
|
+ import {
|
|
|
+ pullDown,
|
|
|
+ getstaff
|
|
|
+ } from '@/model/warehouse/index'
|
|
|
+ import Pagination from '@/components/Pagination'
|
|
|
+ import WsUpload from '@/components/WsUpload'
|
|
|
+ // import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
|
+ import {
|
|
|
+ dayjs,
|
|
|
+ EventBus
|
|
|
+ } from 'base-core-lib'
|
|
|
+ import {
|
|
|
+ mapGetters
|
|
|
+ } from 'vuex'
|
|
|
+ export default {
|
|
|
+ name: 'viewSpareMoney',
|
|
|
+ components: {
|
|
|
+ WsUpload,
|
|
|
+ Pagination,
|
|
|
},
|
|
|
- },
|
|
|
- computed: {
|
|
|
- ...mapGetters(['deptBudgetList']),
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- //弹出框
|
|
|
- dialogViewSpareMoney: false,
|
|
|
- dialogApproveFormVisible: false,
|
|
|
- // 船舶类型
|
|
|
- monetaryKey: null,
|
|
|
- // 表格显示数据
|
|
|
- tableDate: [],
|
|
|
- // 是否显示
|
|
|
- showType: true,
|
|
|
- disabled: false,
|
|
|
- // 年
|
|
|
- year: '',
|
|
|
- disableReason: '',
|
|
|
- contractNoList: [],
|
|
|
- deptBudgetTotal: 0,
|
|
|
- readonly: true,
|
|
|
- currentPage: 1,
|
|
|
- pageSize: 10,
|
|
|
- searchType: 1,
|
|
|
- searchKeyWord: '',
|
|
|
- radio: '1',
|
|
|
- contractType: 2,
|
|
|
- startDate: null,
|
|
|
- endDate: null,
|
|
|
- taskhistories: [],
|
|
|
- goodnameList: [],
|
|
|
- checked: true,
|
|
|
- form: {},
|
|
|
- outerVisible: false,
|
|
|
- staffList: [],
|
|
|
- options: [],
|
|
|
- storageType: [],
|
|
|
- storageType1: [],
|
|
|
- outContractNo: [],
|
|
|
- // 提交类型
|
|
|
- submitType: true,
|
|
|
- status: [],
|
|
|
- auditMind: '',
|
|
|
- deletetask: false,
|
|
|
- warehouseNameList: [],
|
|
|
- warehouseNameList1: [],
|
|
|
- appendixIdsAdd: '',
|
|
|
- uploadSuccess: {},
|
|
|
- warehouseInOutDetail: {},
|
|
|
- onChange: {},
|
|
|
- deptBudgetList1: [],
|
|
|
- gradeList: [],
|
|
|
- Pricetype:true,
|
|
|
- rules: {
|
|
|
- netWeight: [
|
|
|
- {
|
|
|
+ watch: {
|
|
|
+ // vesselId(val) {
|
|
|
+ // this.getList()
|
|
|
+ // },
|
|
|
+ isShow(val) {
|
|
|
+ this.showType = val
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(['deptBudgetList']),
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ //弹出框
|
|
|
+ dialogViewSpareMoney: false,
|
|
|
+ dialogApproveFormVisible: false,
|
|
|
+ // 船舶类型
|
|
|
+ monetaryKey: null,
|
|
|
+ // 表格显示数据
|
|
|
+ tableDate: [],
|
|
|
+ // 是否显示
|
|
|
+ showType: true,
|
|
|
+ disabled: false,
|
|
|
+ // 年
|
|
|
+ year: '',
|
|
|
+ disableReason: '',
|
|
|
+ contractNoList: [],
|
|
|
+ deptBudgetTotal: 0,
|
|
|
+ readonly: true,
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ searchType: 1,
|
|
|
+ searchKeyWord: '',
|
|
|
+ radio: '1',
|
|
|
+ contractType: 2,
|
|
|
+ startDate: null,
|
|
|
+ endDate: null,
|
|
|
+ taskhistories: [],
|
|
|
+ goodnameList: [],
|
|
|
+ checked: true,
|
|
|
+ form: {},
|
|
|
+ outerVisible: false,
|
|
|
+ staffList: [],
|
|
|
+ options: [],
|
|
|
+ storageType: [],
|
|
|
+ storageType1: [],
|
|
|
+ outContractNo: [],
|
|
|
+ // 提交类型
|
|
|
+ submitType: true,
|
|
|
+ status: [],
|
|
|
+ auditMind: '',
|
|
|
+ deletetask: false,
|
|
|
+ warehouseNameList: [],
|
|
|
+ warehouseNameList1: [],
|
|
|
+ appendixIdsAdd: '',
|
|
|
+ uploadSuccess: {},
|
|
|
+ warehouseInOutDetail: {},
|
|
|
+ onChange: {},
|
|
|
+ deptBudgetList1: [],
|
|
|
+ gradeList: [],
|
|
|
+ Pricetype: true,
|
|
|
+ rules: {
|
|
|
+ netWeight: [{
|
|
|
required: true,
|
|
|
type: 'number',
|
|
|
message: '请输入活动名称',
|
|
|
trigger: 'blur',
|
|
|
+ }, ],
|
|
|
+ },
|
|
|
+ size: 10,
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
+ deptCircularPage: {},
|
|
|
+ packtypeList: {},
|
|
|
+ date: {
|
|
|
+ year: dayjs().format('YYYY'),
|
|
|
+ month: dayjs().format('MM'),
|
|
|
+ },
|
|
|
+ contractList: [],
|
|
|
+ inOutTaskNo: '',
|
|
|
+ inOutTaskNo1: '',
|
|
|
+ dataList: {
|
|
|
+ taskTypeKey: '1'
|
|
|
+ },
|
|
|
+ dataList1: {
|
|
|
+ taskTypeKey: '1'
|
|
|
+ },
|
|
|
+ historyList: [],
|
|
|
+ pickerBeginDateBefore: {
|
|
|
+ disabledDate: (time) => {
|
|
|
+ return time.getTime() > Date.now()
|
|
|
},
|
|
|
- ],
|
|
|
- },
|
|
|
- size: 10,
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
- deptCircularPage: {},
|
|
|
- packtypeList: {},
|
|
|
- date: {
|
|
|
- year: dayjs().format('YYYY'),
|
|
|
- month: dayjs().format('MM'),
|
|
|
- },
|
|
|
- contractList: [],
|
|
|
- inOutTaskNo: '',
|
|
|
- inOutTaskNo1: '',
|
|
|
- dataList: { taskTypeKey: '1' },
|
|
|
- dataList1: { taskTypeKey: '1' },
|
|
|
- historyList: [],
|
|
|
- pickerBeginDateBefore: {
|
|
|
- disabledDate: (time) => {
|
|
|
- return time.getTime() > Date.now()
|
|
|
},
|
|
|
- },
|
|
|
- binNumberList: [],
|
|
|
- binNumberList1:[],
|
|
|
- accessoryTFs: false,
|
|
|
- }
|
|
|
- },
|
|
|
- activated() {
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- methods: {
|
|
|
- // 仓位号改变
|
|
|
- binNumberChange(e) {
|
|
|
- this.dataList1.binNumber = e
|
|
|
- },
|
|
|
- binNumberChange1(e) {
|
|
|
- this.dataList.binNumber = e
|
|
|
- },
|
|
|
- //返回按钮
|
|
|
- revert() {
|
|
|
- this.$router.go(-1)
|
|
|
- },
|
|
|
- returnsales() {
|
|
|
- this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
|
|
|
- },
|
|
|
- // 获取当前年月日
|
|
|
- getdate() {
|
|
|
- var date = new Date()
|
|
|
- var year = date.getFullYear() //获取完整的年份(4位)
|
|
|
- var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
|
|
|
- var datetime = date.getDate() //获取当前日(1-31)
|
|
|
- if (mouth < 10) {
|
|
|
- mouth = '0' + mouth
|
|
|
- }
|
|
|
- if (datetime < 10) {
|
|
|
- datetime = '0' + datetime
|
|
|
+ binNumberList: [],
|
|
|
+ binNumberList1: [],
|
|
|
+ accessoryTFs: false,
|
|
|
}
|
|
|
- return year + '' + mouth + datetime
|
|
|
},
|
|
|
- reject() {
|
|
|
- this.outerVisible = true
|
|
|
+ activated() {
|
|
|
+ this.getList()
|
|
|
},
|
|
|
- // 随机验证码
|
|
|
- verifyinit() {
|
|
|
- var arr = []
|
|
|
- for (var i = 48; i < 123; i++) {
|
|
|
- if (i > 57 && i < 65) continue
|
|
|
- if (i > 90) continue
|
|
|
- arr.push(String.fromCharCode(i))
|
|
|
- }
|
|
|
- arr.sort(function () {
|
|
|
- return Math.random() - 0.5
|
|
|
- })
|
|
|
- arr.length = 4
|
|
|
+ methods: {
|
|
|
+ // 仓位号改变
|
|
|
+ binNumberChange(e) {
|
|
|
+ this.dataList1.binNumber = e
|
|
|
+ },
|
|
|
+ binNumberChange1(e) {
|
|
|
+ this.dataList.binNumber = e
|
|
|
+ },
|
|
|
+ //返回按钮
|
|
|
+ revert() {
|
|
|
+ this.$router.go(-1)
|
|
|
+ },
|
|
|
+ returnsales() {
|
|
|
+ this.$router.push({
|
|
|
+ path: 'tranManagementWarehouseInOuttask'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取当前年月日
|
|
|
+ getdate() {
|
|
|
+ var date = new Date()
|
|
|
+ var year = date.getFullYear() //获取完整的年份(4位)
|
|
|
+ var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
|
|
|
+ var datetime = date.getDate() //获取当前日(1-31)
|
|
|
+ if (mouth < 10) {
|
|
|
+ mouth = '0' + mouth
|
|
|
+ }
|
|
|
+ if (datetime < 10) {
|
|
|
+ datetime = '0' + datetime
|
|
|
+ }
|
|
|
+ return year + '' + mouth + datetime
|
|
|
+ },
|
|
|
+ reject() {
|
|
|
+ this.outerVisible = true
|
|
|
+ },
|
|
|
+ // 随机验证码
|
|
|
+ verifyinit() {
|
|
|
+ var arr = []
|
|
|
+ for (var i = 48; i < 123; i++) {
|
|
|
+ if (i > 57 && i < 65) continue
|
|
|
+ if (i > 90) continue
|
|
|
+ arr.push(String.fromCharCode(i))
|
|
|
+ }
|
|
|
+ arr.sort(function() {
|
|
|
+ return Math.random() - 0.5
|
|
|
+ })
|
|
|
+ arr.length = 4
|
|
|
|
|
|
- return arr.join('')
|
|
|
- },
|
|
|
- MathRand() {
|
|
|
- var Num = ''
|
|
|
- for (var i = 0; i < 4; i++) {
|
|
|
- Num += Math.floor(Math.random() * 10)
|
|
|
- }
|
|
|
- return Num
|
|
|
- },
|
|
|
- selectTaskNo(e) {
|
|
|
- if (this.dataList.taskTypeKey == 3) {
|
|
|
- this.dataList1.moveTaskNo = e
|
|
|
- }
|
|
|
- },
|
|
|
- dataFilter(val) {
|
|
|
- // console.log(val,"名")
|
|
|
- this.deptBudgetList.staffList = val
|
|
|
- if (val) {
|
|
|
- //val存在
|
|
|
- this.options = this.staffList.filter((item) => {
|
|
|
- if (
|
|
|
- !!~item.staffName.indexOf(val) ||
|
|
|
- !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
|
|
|
- ) {
|
|
|
- return true
|
|
|
+ return arr.join('')
|
|
|
+ },
|
|
|
+ MathRand() {
|
|
|
+ var Num = ''
|
|
|
+ for (var i = 0; i < 4; i++) {
|
|
|
+ Num += Math.floor(Math.random() * 10)
|
|
|
+ }
|
|
|
+ return Num
|
|
|
+ },
|
|
|
+ selectTaskNo(e) {
|
|
|
+ if (this.dataList.taskTypeKey == 3) {
|
|
|
+ this.dataList1.moveTaskNo = e
|
|
|
+ }
|
|
|
+ },
|
|
|
+ dataFilter(val) {
|
|
|
+ // console.log(val,"名")
|
|
|
+ this.deptBudgetList.staffList = val
|
|
|
+ if (val) {
|
|
|
+ //val存在
|
|
|
+ this.options = this.staffList.filter((item) => {
|
|
|
+ if (
|
|
|
+ !!~item.staffName.indexOf(val) ||
|
|
|
+ !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
|
|
|
+ ) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ //val为空时,还原数组
|
|
|
+ this.options = this.staffList
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 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)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 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)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ changecontract(e) {
|
|
|
+ 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
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
- } else {
|
|
|
- //val为空时,还原数组
|
|
|
- this.options = this.staffList
|
|
|
- }
|
|
|
- },
|
|
|
- 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)
|
|
|
- }
|
|
|
- },
|
|
|
- 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)
|
|
|
- }
|
|
|
- },
|
|
|
- changecontract(e) {
|
|
|
- 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,
|
|
|
- })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ changecontract1(e) {
|
|
|
+ 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
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ selectstaff(e) {
|
|
|
+ for (var i = 0; i < this.staffList.length; i++) {
|
|
|
+ if (this.staffList[i].staffName == e) {
|
|
|
+ this.dataList.agentKey = this.staffList[i].staffId
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ selectstaff1(e) {
|
|
|
+ for (var i = 0; i < this.staffList.length; i++) {
|
|
|
+ if (this.staffList[i].staffName == e) {
|
|
|
+ this.dataList1.agentKey = this.staffList[i].staffId
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ requestadd(list, status) {
|
|
|
+ console.log(list)
|
|
|
+ list.compId = localStorage.getItem('ws-pf_compId')
|
|
|
+ list.publisher =
|
|
|
+ localStorage.getItem('ws-pf_roleName') +
|
|
|
+ localStorage.getItem('ws-pf_staffName')
|
|
|
+ warehousetask(list)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ woekflowhandle({
|
|
|
+ taskId: list.taskId,
|
|
|
+ approved: true,
|
|
|
+ auditMind: '34',
|
|
|
+ needReapply: false,
|
|
|
+ })
|
|
|
.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
|
|
|
- )
|
|
|
+ // workflowcontent({workflowId:list.workflowId,businessKey:list.id}).toPromise()
|
|
|
+ // .then((response1) => {
|
|
|
+ // console.log(response1)
|
|
|
+
|
|
|
+ workflowcontent({
|
|
|
+ workflowId: item.workflowId,
|
|
|
+ businessKey: item.id,
|
|
|
+ type: '出入库任务'
|
|
|
+ }).toPromise()
|
|
|
+ .then((response1) => {
|
|
|
+ this.$message.success('审核成功')
|
|
|
+ this.$router.push({
|
|
|
+ path: 'tranManagementWarehouseInOuttask'
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ // })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ requestaudit(list, status) {
|
|
|
+ list.compId = localStorage.getItem('ws-pf_compId')
|
|
|
+ list.publisher =
|
|
|
+ localStorage.getItem('ws-pf_roleName') +
|
|
|
+ localStorage.getItem('ws-pf_staffName')
|
|
|
+ warehousetask(list)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ woekflowhandle({
|
|
|
+ taskId: list.taskId,
|
|
|
+ approved: false,
|
|
|
+ auditMind: this.auditMind,
|
|
|
+ needReapply: true,
|
|
|
})
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- changecontract1(e) {
|
|
|
- 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
|
|
|
- )
|
|
|
+ workflowcontent({
|
|
|
+ workflowId: item.workflowId,
|
|
|
+ businessKey: item.id,
|
|
|
+ type: '出入库任务'
|
|
|
+ }).toPromise()
|
|
|
+ .then((response1) => {
|
|
|
+ this.$message.success('驳回成功')
|
|
|
+ this.$router.push({
|
|
|
+ path: 'tranManagementWarehouseInOuttask'
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
})
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //提交按钮
|
|
|
+ submit() {
|
|
|
+ this.dataList.inOutFlag = 1
|
|
|
+ this.dataList1.inOutFlag = 2
|
|
|
+ if (this.dataList.taskTypeKey == 1) {
|
|
|
+ this.requestadd(this.dataList)
|
|
|
+ } else if (this.dataList1.taskTypeKey == 2) {
|
|
|
+ this.requestadd(this.dataList1)
|
|
|
+ } else if (
|
|
|
+ this.dataList.taskTypeKey == 3 ||
|
|
|
+ this.dataList.taskTypeKey == 4
|
|
|
+ ) {
|
|
|
+ this.requestadd(this.dataList, 'repetition')
|
|
|
+ if (!this.deletetask) {
|
|
|
+ this.requestadd(this.dataList1, 'repetition')
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- selectstaff(e) {
|
|
|
- for (var i = 0; i < this.staffList.length; i++) {
|
|
|
- if (this.staffList[i].staffName == e) {
|
|
|
- this.dataList.agentKey = this.staffList[i].staffId
|
|
|
+ },
|
|
|
+ disableReasons() {
|
|
|
+ this.dataList.inOutFlag = 1
|
|
|
+ this.dataList1.inOutFlag = 2
|
|
|
+ if (!this.auditMind) {
|
|
|
+ this.$message({
|
|
|
+ message: '驳回原因不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- selectstaff1(e) {
|
|
|
- for (var i = 0; i < this.staffList.length; i++) {
|
|
|
- if (this.staffList[i].staffName == e) {
|
|
|
- this.dataList1.agentKey = this.staffList[i].staffId
|
|
|
+ if (this.dataList.taskTypeKey == 1) {
|
|
|
+ this.requestaudit(this.dataList)
|
|
|
+ } else if (this.dataList1.taskTypeKey == 2) {
|
|
|
+ this.requestaudit(this.dataList1)
|
|
|
+ } else if (
|
|
|
+ this.dataList.taskTypeKey == 3 ||
|
|
|
+ this.dataList.taskTypeKey == 4
|
|
|
+ ) {
|
|
|
+ this.requestaudit(this.dataList, 'repetition')
|
|
|
+ if (!this.deletetask) {
|
|
|
+ this.requestaudit(this.dataList1, 'repetition')
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- requestadd(list, status) {
|
|
|
- console.log(list)
|
|
|
- list.compId = localStorage.getItem('ws-pf_compId')
|
|
|
- list.publisher =
|
|
|
- localStorage.getItem('ws-pf_roleName') +
|
|
|
- localStorage.getItem('ws-pf_staffName')
|
|
|
- warehousetask(list)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- woekflowhandle({
|
|
|
- taskId: list.taskId,
|
|
|
- approved: true,
|
|
|
- auditMind: '34',
|
|
|
- needReapply: false,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- // workflowcontent({workflowId:list.workflowId,businessKey:list.id}).toPromise()
|
|
|
- // .then((response1) => {
|
|
|
- // console.log(response1)
|
|
|
- workflowcontent({workflowId:item.workflowId,businessKey:item.id,type:'出入库任务'}).toPromise()
|
|
|
- .then((response1) => {
|
|
|
- this.$message.success('审核成功')
|
|
|
- this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
|
|
|
- })
|
|
|
-
|
|
|
- // })
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
- requestaudit(list, status) {
|
|
|
- list.compId = localStorage.getItem('ws-pf_compId')
|
|
|
- list.publisher =
|
|
|
- localStorage.getItem('ws-pf_roleName') +
|
|
|
- localStorage.getItem('ws-pf_staffName')
|
|
|
- warehousetask(list)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- woekflowhandle({
|
|
|
- taskId: list.taskId,
|
|
|
- approved: false,
|
|
|
- auditMind: this.auditMind,
|
|
|
- needReapply: true,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- workflowcontent({workflowId:item.workflowId,businessKey:item.id,type:'出入库任务'}).toPromise()
|
|
|
- .then((response1) => {
|
|
|
- this.$message.success('驳回成功')
|
|
|
- this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
|
|
|
- })
|
|
|
-
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
- //提交按钮
|
|
|
- submit() {
|
|
|
- this.dataList.inOutFlag = 1
|
|
|
- this.dataList1.inOutFlag = 2
|
|
|
- if (this.dataList.taskTypeKey == 1) {
|
|
|
- this.requestadd(this.dataList)
|
|
|
- } else if (this.dataList1.taskTypeKey == 2) {
|
|
|
- this.requestadd(this.dataList1)
|
|
|
- } else if (
|
|
|
- this.dataList.taskTypeKey == 3 ||
|
|
|
- this.dataList.taskTypeKey == 4
|
|
|
- ) {
|
|
|
- this.requestadd(this.dataList, 'repetition')
|
|
|
- if (!this.deletetask) {
|
|
|
- this.requestadd(this.dataList1, 'repetition')
|
|
|
+ },
|
|
|
+ selectwarehouseName() {},
|
|
|
+ tarechange(e) {
|
|
|
+ if (this.dataList.grossWeight && this.dataList.tare) {
|
|
|
+ this.dataList.netWeight = Number(
|
|
|
+ this.dataList.grossWeight - this.dataList.tare
|
|
|
+ )
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- disableReasons() {
|
|
|
- this.dataList.inOutFlag = 1
|
|
|
- this.dataList1.inOutFlag = 2
|
|
|
- if (!this.auditMind) {
|
|
|
- this.$message({
|
|
|
- message: '驳回原因不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.dataList.taskTypeKey == 1) {
|
|
|
- this.requestaudit(this.dataList)
|
|
|
- } else if (this.dataList1.taskTypeKey == 2) {
|
|
|
- this.requestaudit(this.dataList1)
|
|
|
- } else if (
|
|
|
- this.dataList.taskTypeKey == 3 ||
|
|
|
- this.dataList.taskTypeKey == 4
|
|
|
- ) {
|
|
|
- this.requestaudit(this.dataList, 'repetition')
|
|
|
- if (!this.deletetask) {
|
|
|
- this.requestaudit(this.dataList1, 'repetition')
|
|
|
+ },
|
|
|
+ grossWeightchange(e) {
|
|
|
+ if (this.dataList.grossWeight && this.dataList.tare) {
|
|
|
+ this.dataList.netWeight = Number(
|
|
|
+ this.dataList.grossWeight - this.dataList.tare
|
|
|
+ )
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- selectwarehouseName() {},
|
|
|
- tarechange(e) {
|
|
|
- if (this.dataList.grossWeight && this.dataList.tare) {
|
|
|
- this.dataList.netWeight = Number(
|
|
|
- this.dataList.grossWeight - this.dataList.tare
|
|
|
- )
|
|
|
- }
|
|
|
- },
|
|
|
- grossWeightchange(e) {
|
|
|
- if (this.dataList.grossWeight && this.dataList.tare) {
|
|
|
- this.dataList.netWeight = Number(
|
|
|
- this.dataList.grossWeight - this.dataList.tare
|
|
|
- )
|
|
|
- }
|
|
|
- },
|
|
|
- selectgoodsName(e) {
|
|
|
- for (var i = 0; i < this.goodnameList.length; i++) {
|
|
|
- if (this.goodnameList[i].constValue == e) {
|
|
|
- this.dataList.goodsNameKey = this.goodnameList[i].constKey
|
|
|
+ },
|
|
|
+ selectgoodsName(e) {
|
|
|
+ for (var i = 0; i < this.goodnameList.length; i++) {
|
|
|
+ if (this.goodnameList[i].constValue == e) {
|
|
|
+ this.dataList.goodsNameKey = this.goodnameList[i].constKey
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- selectgoodsName1(e) {
|
|
|
- for (var i = 0; i < this.goodnameList.length; i++) {
|
|
|
- if (this.goodnameList[i].constValue == e) {
|
|
|
- this.dataList1.goodsNameKey = this.goodnameList[i].constKey
|
|
|
+ },
|
|
|
+ selectgoodsName1(e) {
|
|
|
+ for (var i = 0; i < this.goodnameList.length; i++) {
|
|
|
+ if (this.goodnameList[i].constValue == e) {
|
|
|
+ this.dataList1.goodsNameKey = this.goodnameList[i].constKey
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- selectpackingMethod(e) {
|
|
|
- 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)
|
|
|
+ },
|
|
|
+ selectpackingMethod(e) {
|
|
|
+ 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)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- selectpackingMethod1(e) {
|
|
|
- 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)
|
|
|
+ },
|
|
|
+ selectpackingMethod1(e) {
|
|
|
+ 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)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- selectstorageType(e) {
|
|
|
- for (var i = 0; i < this.storageType.length; i++) {
|
|
|
- if (this.storageType[i].constValue == e) {
|
|
|
- this.dataList.inOutTypeKey = this.storageType[i].constKey
|
|
|
+ },
|
|
|
+ selectstorageType(e) {
|
|
|
+ for (var i = 0; i < this.storageType.length; i++) {
|
|
|
+ if (this.storageType[i].constValue == e) {
|
|
|
+ this.dataList.inOutTypeKey = this.storageType[i].constKey
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- selectstorageType1(e) {
|
|
|
- for (var i = 0; i < this.storageType1.length; i++) {
|
|
|
- if (this.storageType1[i].constValue == e) {
|
|
|
- this.dataList1.inOutTypeKey = this.storageType1[i].constKey
|
|
|
+ },
|
|
|
+ selectstorageType1(e) {
|
|
|
+ for (var i = 0; i < this.storageType1.length; i++) {
|
|
|
+ if (this.storageType1[i].constValue == e) {
|
|
|
+ this.dataList1.inOutTypeKey = this.storageType1[i].constKey
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- handleClose() {
|
|
|
- this.accessoryTFs = false
|
|
|
- },
|
|
|
- handleSizeChange(val) {
|
|
|
- console.log(`每页 ${val} 条`)
|
|
|
- this.pageSize = val
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- businessDescriptionchange(e) {
|
|
|
- console.log(e)
|
|
|
- },
|
|
|
- handleCurrentChange(val) {
|
|
|
- this.currentPage = val
|
|
|
- console.log(`当前页: ${val}`)
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- tasknumber() {
|
|
|
- if (this.dataList.taskTypeKey == 1) {
|
|
|
- this.inOutTaskNo = 'CK' + this.getdate() + this.MathRand()
|
|
|
- } else if (this.dataList.taskTypeKey == 2) {
|
|
|
- this.inOutTaskNo1 = 'RK' + this.getdate() + this.MathRand()
|
|
|
- } else if (this.dataList.taskTypeKey == 3) {
|
|
|
- var random = this.getdate() + this.MathRand()
|
|
|
- this.inOutTaskNo = 'YKC' + random
|
|
|
- this.inOutTaskNo1 = 'YKR' + random
|
|
|
- } else if (this.dataList.taskTypeKey == 4) {
|
|
|
- var random = this.getdate() + this.MathRand()
|
|
|
- this.inOutTaskNo = 'TCC' + random
|
|
|
- this.inOutTaskNo1 = 'TCR' + random
|
|
|
- }
|
|
|
- },
|
|
|
- tasktypechange(e) {
|
|
|
- if (!this.$route.query.relevanceId) {
|
|
|
- this.tasknumber()
|
|
|
- }
|
|
|
- this.dataList1.taskTypeKey = e
|
|
|
- if (this.dataList.taskTypeKey == 1) {
|
|
|
- this.dataList.inOutType = '销售出库'
|
|
|
- this.dataList.inOutTypeKey = '1'
|
|
|
- }
|
|
|
- if (this.dataList1.taskTypeKey == 2) {
|
|
|
- this.dataList1.inOutType = '采购入库'
|
|
|
- this.dataList1.inOutTypeKey = '1'
|
|
|
- } 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.dataList.inOutTypeKey = '1'
|
|
|
- }
|
|
|
- },
|
|
|
- GetRandomNum(Min, Max) {
|
|
|
- var Range = Max - Min
|
|
|
- var Rand = Math.random()
|
|
|
- return Min + Math.round(Rand * Range)
|
|
|
- },
|
|
|
- getList() {
|
|
|
- gettaskhistories({
|
|
|
- businessKey: this.$route.query.businessKey,
|
|
|
- workflowId: this.$route.query.workflowId,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.taskhistories = response
|
|
|
- })
|
|
|
-
|
|
|
- if (this.$route.query.relevanceId) {
|
|
|
- outexamine({ relevanceId: this.$route.query.relevanceId })
|
|
|
+ },
|
|
|
+ handleClose() {
|
|
|
+ this.accessoryTFs = false
|
|
|
+ },
|
|
|
+ handleSizeChange(val) {
|
|
|
+ console.log(`每页 ${val} 条`)
|
|
|
+ this.pageSize = val
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ businessDescriptionchange(e) {
|
|
|
+ console.log(e)
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.currentPage = val
|
|
|
+ console.log(`当前页: ${val}`)
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ tasknumber() {
|
|
|
+ if (this.dataList.taskTypeKey == 1) {
|
|
|
+ this.inOutTaskNo = 'CK' + this.getdate() + this.MathRand()
|
|
|
+ } else if (this.dataList.taskTypeKey == 2) {
|
|
|
+ this.inOutTaskNo1 = 'RK' + this.getdate() + this.MathRand()
|
|
|
+ } else if (this.dataList.taskTypeKey == 3) {
|
|
|
+ var random = this.getdate() + this.MathRand()
|
|
|
+ this.inOutTaskNo = 'YKC' + random
|
|
|
+ this.inOutTaskNo1 = 'YKR' + random
|
|
|
+ } else if (this.dataList.taskTypeKey == 4) {
|
|
|
+ var random = this.getdate() + this.MathRand()
|
|
|
+ this.inOutTaskNo = 'TCC' + random
|
|
|
+ this.inOutTaskNo1 = 'TCR' + random
|
|
|
+ }
|
|
|
+ },
|
|
|
+ tasktypechange(e) {
|
|
|
+ if (!this.$route.query.relevanceId) {
|
|
|
+ this.tasknumber()
|
|
|
+ }
|
|
|
+ this.dataList1.taskTypeKey = e
|
|
|
+ if (this.dataList.taskTypeKey == 1) {
|
|
|
+ this.dataList.inOutType = '销售出库'
|
|
|
+ this.dataList.inOutTypeKey = '1'
|
|
|
+ }
|
|
|
+ if (this.dataList1.taskTypeKey == 2) {
|
|
|
+ this.dataList1.inOutType = '采购入库'
|
|
|
+ this.dataList1.inOutTypeKey = '1'
|
|
|
+ } 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.dataList.inOutTypeKey = '1'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ GetRandomNum(Min, Max) {
|
|
|
+ var Range = Max - Min
|
|
|
+ var Rand = Math.random()
|
|
|
+ return Min + Math.round(Rand * Range)
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+ gettaskhistories({
|
|
|
+ businessKey: this.$route.query.businessKey,
|
|
|
+ workflowId: this.$route.query.workflowId,
|
|
|
+ })
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- if (response.length > 1) {
|
|
|
- if (response[0].taskTypeKey == 3) {
|
|
|
- if (response[0].inOutType == '移库出库') {
|
|
|
- this.dataList = response[0]
|
|
|
- this.dataList1 = response[1]
|
|
|
- } else {
|
|
|
- this.dataList = response[1]
|
|
|
+ this.taskhistories = response
|
|
|
+ })
|
|
|
+
|
|
|
+ if (this.$route.query.relevanceId) {
|
|
|
+ outexamine({
|
|
|
+ relevanceId: this.$route.query.relevanceId
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ if (response.length > 1) {
|
|
|
+ if (response[0].taskTypeKey == 3) {
|
|
|
+ if (response[0].inOutType == '移库出库') {
|
|
|
+ this.dataList = response[0]
|
|
|
+ this.dataList1 = response[1]
|
|
|
+ } else {
|
|
|
+ this.dataList = response[1]
|
|
|
+ this.dataList1 = response[0]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (response[0].taskTypeKey == 3) {
|
|
|
+ this.deletetask = true
|
|
|
+ this.dataList1.inOutTaskNo =
|
|
|
+ 'YKR' +
|
|
|
+ response[0].inOutTaskNo.substr(
|
|
|
+ response[0].inOutTaskNo.indexOf('C') + 1,
|
|
|
+ response[0].inOutTaskNo.length
|
|
|
+ )
|
|
|
+ } else if (response[0].taskTypeKey == 2) {
|
|
|
this.dataList1 = response[0]
|
|
|
}
|
|
|
+ this.dataList = response[0]
|
|
|
}
|
|
|
- } else {
|
|
|
- if (response[0].taskTypeKey == 3) {
|
|
|
- this.deletetask = true
|
|
|
- this.dataList1.inOutTaskNo =
|
|
|
- 'YKR' +
|
|
|
- response[0].inOutTaskNo.substr(
|
|
|
- response[0].inOutTaskNo.indexOf('C') + 1,
|
|
|
- response[0].inOutTaskNo.length
|
|
|
- )
|
|
|
- } else if (response[0].taskTypeKey == 2) {
|
|
|
- this.dataList1 = response[0]
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ 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()
|
|
|
+ .then((response) => {
|
|
|
+ this.goodnameList = response
|
|
|
+ })
|
|
|
+ // 品级
|
|
|
+ pullDown({
|
|
|
+ constId: 'CON3'
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.gradeList = response
|
|
|
+ })
|
|
|
+ pullDown({
|
|
|
+ constId: 'CON6'
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.storageType = response
|
|
|
+ })
|
|
|
+ pullDown({
|
|
|
+ constId: 'CON5'
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.storageType1 = response
|
|
|
+ })
|
|
|
+ xialaNo({
|
|
|
+ compId: this.compId,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.contractNoList = response
|
|
|
+ for (let i = 0; i < this.contractNoList.length; i++) {
|
|
|
+ if (this.contractNoList[i].contractNo == this.dataList.contractNo) {
|
|
|
+ if (this.contractNoList[i].priceType == "随行就市") {
|
|
|
+ this.Pricetype = false
|
|
|
+ } else {
|
|
|
+ this.Pricetype = true
|
|
|
+ }
|
|
|
}
|
|
|
- this.dataList = response[0]
|
|
|
}
|
|
|
})
|
|
|
- } else {
|
|
|
- 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()
|
|
|
- .then((response) => {
|
|
|
- this.goodnameList = response
|
|
|
- })
|
|
|
- // 品级
|
|
|
- pullDown({ constId: 'CON3' })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.gradeList = response
|
|
|
- })
|
|
|
- pullDown({ constId: 'CON6' })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.storageType = response
|
|
|
- })
|
|
|
- pullDown({ constId: 'CON5' })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.storageType1 = response
|
|
|
- })
|
|
|
- xialaNo({
|
|
|
- compId: this.compId,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.contractNoList = response
|
|
|
- for (let i = 0; i < this.contractNoList.length; i++) {
|
|
|
- if ( this.contractNoList[i].contractNo == this.dataList.contractNo) {
|
|
|
- if( this.contractNoList[i].priceType == "随行就市"){
|
|
|
- this.Pricetype = false
|
|
|
- }else{
|
|
|
- this.Pricetype = true
|
|
|
- }
|
|
|
+ //仓库名
|
|
|
+ getwarehousename({
|
|
|
+ compId: this.compId,
|
|
|
+ warehouseType: 1,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.warehouseNameList = response
|
|
|
+ for (let i = 0; i < this.warehouseNameList.length; i++) {
|
|
|
+ if (
|
|
|
+ this.dataList.warehouseName ==
|
|
|
+ this.warehouseNameList[i].warehouseName
|
|
|
+ ) {
|
|
|
+ this.binNumberList1 = this.warehouseNameList[i].positionInfos
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.dataList1.warehouseName ==
|
|
|
+ this.warehouseNameList[i].warehouseName
|
|
|
+ ) {
|
|
|
+ this.binNumberList = this.warehouseNameList[i].positionInfos
|
|
|
}
|
|
|
}
|
|
|
- })
|
|
|
- //仓库名
|
|
|
- getwarehousename({
|
|
|
- compId: this.compId,
|
|
|
- warehouseType: 1,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.warehouseNameList = response
|
|
|
- for (let i = 0; i < this.warehouseNameList.length; i++) {
|
|
|
- if (
|
|
|
- this.dataList.warehouseName ==
|
|
|
- this.warehouseNameList[i].warehouseName
|
|
|
- ) {
|
|
|
- this.binNumberList1 = this.warehouseNameList[i].positionInfos
|
|
|
- }
|
|
|
- if (
|
|
|
- this.dataList1.warehouseName ==
|
|
|
- this.warehouseNameList[i].warehouseName
|
|
|
- ) {
|
|
|
- this.binNumberList = this.warehouseNameList[i].positionInfos
|
|
|
- }
|
|
|
+ })
|
|
|
+ getwarehousename({
|
|
|
+ compId: this.compId,
|
|
|
+ warehouseType: 2,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.warehouseNameList1 = response
|
|
|
+ })
|
|
|
+ //经办人
|
|
|
+ getstaff({
|
|
|
+ compId: localStorage.getItem('ws-pf_compId')
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.options = response
|
|
|
+ this.staffList = response
|
|
|
+ // this.agent = response
|
|
|
+ })
|
|
|
+ },
|
|
|
+ selecttaskType(e) {
|
|
|
+ for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
|
+ if (this.taskTypeList[i].value == e) {
|
|
|
+ this.searchType = this.taskTypeList[i].type
|
|
|
}
|
|
|
- })
|
|
|
- getwarehousename({
|
|
|
- compId: this.compId,
|
|
|
- warehouseType: 2,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.warehouseNameList1 = response
|
|
|
- })
|
|
|
- //经办人
|
|
|
- getstaff({ compId: localStorage.getItem('ws-pf_compId') })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.options = response
|
|
|
- this.staffList = response
|
|
|
- // this.agent = response
|
|
|
- })
|
|
|
- },
|
|
|
- selecttaskType(e) {
|
|
|
- for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
|
- if (this.taskTypeList[i].value == e) {
|
|
|
- this.searchType = this.taskTypeList[i].type
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- fujian(row) {
|
|
|
- if (
|
|
|
- row.receiveAttachmentPath === null ||
|
|
|
- row.receiveAttachmentPath === ''
|
|
|
- ) {
|
|
|
- EventBus.$emit(
|
|
|
- 'warning',
|
|
|
- this.$t('system.noticeCircular.NoInformation')
|
|
|
- )
|
|
|
- } else {
|
|
|
- this.accessoryTFs = true
|
|
|
- }
|
|
|
- this.appendixIdss = row.receiveAttachmentPath
|
|
|
- },
|
|
|
- handleExamine(row) {
|
|
|
- this.$router.push({
|
|
|
- name: 'salesContractExamine',
|
|
|
- query: { id: row.id },
|
|
|
- })
|
|
|
- },
|
|
|
- // 关闭 dialog时 处理文件url 初始化upload组件
|
|
|
- handleCloe() {
|
|
|
- this.dialogViewSpareMoney = false
|
|
|
- },
|
|
|
- history(row) {
|
|
|
- console.log(row)
|
|
|
- billoperatehis({ id: row.id })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.historyList = response
|
|
|
+ },
|
|
|
+ fujian(row) {
|
|
|
+ if (
|
|
|
+ row.receiveAttachmentPath === null ||
|
|
|
+ row.receiveAttachmentPath === ''
|
|
|
+ ) {
|
|
|
+ EventBus.$emit(
|
|
|
+ 'warning',
|
|
|
+ this.$t('system.noticeCircular.NoInformation')
|
|
|
+ )
|
|
|
+ } else {
|
|
|
+ this.accessoryTFs = true
|
|
|
+ }
|
|
|
+ this.appendixIdss = row.receiveAttachmentPath
|
|
|
+ },
|
|
|
+ handleExamine(row) {
|
|
|
+ this.$router.push({
|
|
|
+ name: 'salesContractExamine',
|
|
|
+ query: {
|
|
|
+ id: row.id
|
|
|
+ },
|
|
|
})
|
|
|
+ },
|
|
|
+ // 关闭 dialog时 处理文件url 初始化upload组件
|
|
|
+ handleCloe() {
|
|
|
+ this.dialogViewSpareMoney = false
|
|
|
+ },
|
|
|
+ history(row) {
|
|
|
+ console.log(row)
|
|
|
+ billoperatehis({
|
|
|
+ id: row.id
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.historyList = response
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
- },
|
|
|
-}
|
|
|
+ }
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-/deep/.basicInformation {
|
|
|
- .el-info-table {
|
|
|
- border: none;
|
|
|
+ /deep/.basicInformation {
|
|
|
+ .el-info-table {
|
|
|
+ border: none;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-form-item {
|
|
|
+ width: 33.3333%;
|
|
|
+ border: none;
|
|
|
+ margin: 0;
|
|
|
+
|
|
|
+ .el-form-item__label {
|
|
|
+ text-align: left;
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #8890b1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-form-item__content {
|
|
|
+ padding-left: 0px;
|
|
|
+ padding-right: 10px;
|
|
|
+ // background: #fff;
|
|
|
+ white-space: nowrap;
|
|
|
+ height: 40px;
|
|
|
+ display: flex;
|
|
|
+ -webkit-box-align: center;
|
|
|
+ align-items: center;
|
|
|
+ text-align: left;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-radio {
|
|
|
+ color: #606266;
|
|
|
+ font-weight: 500;
|
|
|
+ line-height: 1;
|
|
|
+ cursor: pointer;
|
|
|
+ white-space: nowrap;
|
|
|
+ outline: 0;
|
|
|
+ margin-right: 30px;
|
|
|
+ margin-top: 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-radio__inner {
|
|
|
+ border: 1px solid #dcdfe6;
|
|
|
+ border-radius: 100%;
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ background-color: #fff;
|
|
|
+ cursor: pointer;
|
|
|
+ -webkit-box-sizing: border-box;
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin-left: 100px;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-radio__input {
|
|
|
+ white-space: nowrap;
|
|
|
+ cursor: pointer;
|
|
|
+ outline: 0;
|
|
|
+ line-height: 1;
|
|
|
+ vertical-align: middle;
|
|
|
+ margin-top: -1px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title {
|
|
|
position: relative;
|
|
|
+ padding-left: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title::before {
|
|
|
+ content: '';
|
|
|
+ display: inline-block;
|
|
|
+ width: 5px;
|
|
|
+ height: 30px;
|
|
|
+ background: #5473e8;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-form {
|
|
|
+ padding: 0 15%;
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ margin-left: -50px;
|
|
|
+ margin-top: 15px;
|
|
|
+ width: 110%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-button--primary {
|
|
|
+ background-color: #5878e8;
|
|
|
+ border-color: #5878e8;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-col {
|
|
|
+ background: #f6f7fc;
|
|
|
}
|
|
|
- .el-form-item {
|
|
|
- width: 33.3333%;
|
|
|
+
|
|
|
+ .bg-right {
|
|
|
+ text-align: right;
|
|
|
+ padding: 16px 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .center {
|
|
|
+ height: 100px;
|
|
|
+ margin: 10px auto;
|
|
|
+ margin-right: 180px;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-form-item__label {
|
|
|
+ width: 160px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .inspector {
|
|
|
+ width: 50%;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-form-item--small .el-form-item__label,
|
|
|
+ .el-form-item--small .el-form-item__content {
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-input--small {
|
|
|
+ font-size: 13px;
|
|
|
+ position: relative;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
+
|
|
|
+ .center1 .small-title {
|
|
|
+ margin-left: 323px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .center1 {
|
|
|
+ width: 90%;
|
|
|
+ margin: 0 auto;
|
|
|
+ margin-left: 10px;
|
|
|
+ margin-top: 25px;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-input--small .el-input__inner {
|
|
|
+ height: 32px;
|
|
|
+ line-height: 32px;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-select {
|
|
|
+ display: inline-block;
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .annu {
|
|
|
+ height: 81px;
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .basicInformation .el-form-item {
|
|
|
+ width: 50.3333%;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
- .el-form-item__label {
|
|
|
- text-align: left;
|
|
|
- font-size: 14px;
|
|
|
- font-family: PingFangSC-Regular, PingFang SC;
|
|
|
- font-weight: 400;
|
|
|
- color: #8890b1;
|
|
|
- }
|
|
|
- .el-form-item__content {
|
|
|
- padding-left: 0px;
|
|
|
- padding-right: 10px;
|
|
|
- // background: #fff;
|
|
|
- white-space: nowrap;
|
|
|
- height: 40px;
|
|
|
- display: flex;
|
|
|
- -webkit-box-align: center;
|
|
|
- align-items: center;
|
|
|
- text-align: left;
|
|
|
- overflow: hidden;
|
|
|
- }
|
|
|
}
|
|
|
-}
|
|
|
-/deep/.el-radio {
|
|
|
- color: #606266;
|
|
|
- font-weight: 500;
|
|
|
- line-height: 1;
|
|
|
- cursor: pointer;
|
|
|
- white-space: nowrap;
|
|
|
- outline: 0;
|
|
|
- margin-right: 30px;
|
|
|
- margin-top: 15px;
|
|
|
-}
|
|
|
-/deep/.el-radio__inner {
|
|
|
- border: 1px solid #dcdfe6;
|
|
|
- border-radius: 100%;
|
|
|
- width: 14px;
|
|
|
- height: 14px;
|
|
|
- background-color: #fff;
|
|
|
- cursor: pointer;
|
|
|
- -webkit-box-sizing: border-box;
|
|
|
- box-sizing: border-box;
|
|
|
- margin-left: 100px;
|
|
|
-}
|
|
|
-/deep/.el-radio__input {
|
|
|
- white-space: nowrap;
|
|
|
- cursor: pointer;
|
|
|
- outline: 0;
|
|
|
- line-height: 1;
|
|
|
- vertical-align: middle;
|
|
|
- margin-top: -1px;
|
|
|
-}
|
|
|
-.title {
|
|
|
- position: relative;
|
|
|
- padding-left: 10px;
|
|
|
-}
|
|
|
-.title::before {
|
|
|
- content: '';
|
|
|
- display: inline-block;
|
|
|
- width: 5px;
|
|
|
- height: 30px;
|
|
|
- background: #5473e8;
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
-}
|
|
|
-.el-form {
|
|
|
- padding: 0 15%;
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- margin-left: -50px;
|
|
|
- margin-top: 15px;
|
|
|
- width: 110%;
|
|
|
-}
|
|
|
-.el-button--primary {
|
|
|
- background-color: #5878e8;
|
|
|
- border-color: #5878e8;
|
|
|
-}
|
|
|
-.el-col {
|
|
|
- background: #f6f7fc;
|
|
|
-}
|
|
|
-.bg-right {
|
|
|
- text-align: right;
|
|
|
- padding: 16px 20px;
|
|
|
-}
|
|
|
-.center {
|
|
|
- height: 100px;
|
|
|
- margin: 10px auto;
|
|
|
- margin-right: 180px;
|
|
|
-}
|
|
|
-/deep/.el-form-item__label {
|
|
|
- width: 160px;
|
|
|
-}
|
|
|
-.inspector {
|
|
|
- width: 50%;
|
|
|
-}
|
|
|
-/deep/.el-form-item--small .el-form-item__label,
|
|
|
-.el-form-item--small .el-form-item__content {
|
|
|
- text-align: left;
|
|
|
-}
|
|
|
-/deep/.el-input--small {
|
|
|
- font-size: 13px;
|
|
|
- position: relative;
|
|
|
- display: inline-block;
|
|
|
-}
|
|
|
-.center1 .small-title {
|
|
|
- margin-left: 323px;
|
|
|
-}
|
|
|
-.center1 {
|
|
|
- width: 90%;
|
|
|
- margin: 0 auto;
|
|
|
- margin-left: 10px;
|
|
|
- margin-top: 25px;
|
|
|
-}
|
|
|
-/deep/.el-input--small .el-input__inner {
|
|
|
- height: 32px;
|
|
|
- line-height: 32px;
|
|
|
-}
|
|
|
-/deep/.el-select {
|
|
|
- display: inline-block;
|
|
|
- position: relative;
|
|
|
- width: 100%;
|
|
|
-}
|
|
|
-.annu {
|
|
|
- height: 81px;
|
|
|
- background: #ffffff;
|
|
|
- border-radius: 4px;
|
|
|
-}
|
|
|
-.basicInformation .el-form-item {
|
|
|
- width: 50.3333%;
|
|
|
- border: none;
|
|
|
- margin: 0;
|
|
|
-}
|
|
|
-.huom {
|
|
|
- width: 100%;
|
|
|
-}
|
|
|
-.el-form {
|
|
|
- font-size: 14px;
|
|
|
- font-family: PingFangSC-Regular, PingFang SC;
|
|
|
- font-weight: 400;
|
|
|
- color: #8890b1;
|
|
|
- line-height: 16px;
|
|
|
- margin-left: 130px;
|
|
|
-}
|
|
|
-.a {
|
|
|
- margin-left: -32px;
|
|
|
-}
|
|
|
-.el-radio-group {
|
|
|
- margin-left: 80px;
|
|
|
-}
|
|
|
-.ding {
|
|
|
- height: 23px;
|
|
|
- background: #e8ecf6;
|
|
|
- box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
|
|
|
-}
|
|
|
-.ziti {
|
|
|
- width: 72px;
|
|
|
- height: 20px;
|
|
|
- font-size: 14px;
|
|
|
- font-family: PingFangSC-Regular, PingFang SC;
|
|
|
- font-weight: 400;
|
|
|
- color: #8890b1;
|
|
|
- line-height: 20px;
|
|
|
- margin-left: 310px;
|
|
|
- /* margin-top: 112px; */
|
|
|
-}
|
|
|
-.ziti1 {
|
|
|
- width: 100px;
|
|
|
- font-size: 16px;
|
|
|
- font-family: PingFangSC-Medium, PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
- color: #262626;
|
|
|
- line-height: 22px;
|
|
|
- margin-left: 381px;
|
|
|
- margin-top: -21px;
|
|
|
-}
|
|
|
-.winseaview-view {
|
|
|
- padding: 0 0 20px;
|
|
|
-}
|
|
|
-.container {
|
|
|
- overflow: scroll;
|
|
|
- height: 93vh;
|
|
|
-}
|
|
|
-.nav {
|
|
|
- width: 381px;
|
|
|
- height: 20px;
|
|
|
-}
|
|
|
-.wenzi {
|
|
|
- margin: 0 auto;
|
|
|
-}
|
|
|
+
|
|
|
+ .huom {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-form {
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #8890b1;
|
|
|
+ line-height: 16px;
|
|
|
+ margin-left: 130px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .a {
|
|
|
+ margin-left: -32px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-radio-group {
|
|
|
+ margin-left: 80px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .ding {
|
|
|
+ height: 23px;
|
|
|
+ background: #e8ecf6;
|
|
|
+ box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
|
|
|
+ }
|
|
|
+
|
|
|
+ .ziti {
|
|
|
+ width: 72px;
|
|
|
+ height: 20px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #8890b1;
|
|
|
+ line-height: 20px;
|
|
|
+ margin-left: 310px;
|
|
|
+ /* margin-top: 112px; */
|
|
|
+ }
|
|
|
+
|
|
|
+ .ziti1 {
|
|
|
+ width: 100px;
|
|
|
+ font-size: 16px;
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #262626;
|
|
|
+ line-height: 22px;
|
|
|
+ margin-left: 381px;
|
|
|
+ margin-top: -21px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .winseaview-view {
|
|
|
+ padding: 0 0 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .container {
|
|
|
+ overflow: scroll;
|
|
|
+ height: 93vh;
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav {
|
|
|
+ width: 381px;
|
|
|
+ height: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .wenzi {
|
|
|
+ margin: 0 auto;
|
|
|
+ }
|
|
|
</style>
|