|
@@ -1,248 +1,250 @@
|
|
|
<template>
|
|
|
<view class="warp">
|
|
|
+ <view class="topInfo">
|
|
|
+ <view class="topInfo-item">
|
|
|
+ <view class="flex info">
|
|
|
+ <view class="logo">
|
|
|
+ <image src="../../../static/img/reject.png" mode="" v-if="OutList.taskStatus == '已驳回'"
|
|
|
+ style="height: 40rpx;"></image><!-- 驳回 -->
|
|
|
+ <image src="../../../static/img/tongguo.png" mode="" v-if="OutList.taskStatus == '已通过'"
|
|
|
+ style="height: 40rpx;"></image><!-- 通过 -->
|
|
|
+ <image src="../../../static/img/daishenhe.png" mode="" v-if="OutList.taskStatus == '审核中'"
|
|
|
+ style="height: 40rpx;"></image><!-- 待审核 -->
|
|
|
+ </view>
|
|
|
+ <view class="infoText">{{OutList.taskStatus}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="infoData">{{OutList.updateDate}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="content1">
|
|
|
- <u-form :model="purchaseOrder" ref="uForm" class="uForm">
|
|
|
- <u-form-item label="任务类型" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="OutList.inOutType" input-align="right" placeholder="" disabled />
|
|
|
+ <u-form :model="OutList" ref="uForm">
|
|
|
+ <u-form-item label="任务类型" prop="inOutType" label-width="140" class="uForm_item">
|
|
|
+ <u-input v-model="OutList.inOutType" input-align="right" disabled v-if="OutList.inOutType" />
|
|
|
+ <u-input v-model="EnterList.inOutType" input-align="right" disabled v-else />
|
|
|
</u-form-item>
|
|
|
- <!-- <view v-if="type=='移库'" class="title part2">移库出库</view>
|
|
|
- <view v-if="type=='退库'" class="title part2">退库</view> -->
|
|
|
- <view v-if="OutList.judge == 1">
|
|
|
- <!-- 出库 -->
|
|
|
- <view class="title part2">{{OutList.inOutType}}</view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">编号</view>
|
|
|
- <view class="right">{{OutList.inOutType}} {{OutList.inOutTaskNo}}</view>
|
|
|
- </view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">仓库</view>
|
|
|
- <view class="right">{{OutList.sendWarehouse}}</view>
|
|
|
- </view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">出库类型</view>
|
|
|
- <view class="right">{{OutList.inOutType}}</view>
|
|
|
- </view>
|
|
|
- <view class='row' v-if="OutList.inOutType == '移库出库'">
|
|
|
- <view class="left">移库任务编号</view>
|
|
|
- <view class="right">{{OutList.moveTaskNo}}</view>
|
|
|
- </view>
|
|
|
- <view class='row' v-if="OutList.inOutType != '移库出库'">
|
|
|
- <view class="left">合同编号</view>
|
|
|
- <view class="right">{{OutList.contractNo}}</view>
|
|
|
+ <view v-if="retreatList.judge == 3">
|
|
|
+ <!-- 退库 -->
|
|
|
+ <view class="uForm_item">
|
|
|
+ <view class="title part2">{{retreatList.inOutType}}</view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">编号</view>
|
|
|
+ <view class="right">退库({{retreatList.inOutTaskNo}}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">仓库</view>
|
|
|
+ <view class="right">{{retreatList.sendWarehouse}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">出库类型</view>
|
|
|
+ <view class="right">{{retreatList.inOutType}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row' v-if="retreatList.inOutType == '移库出库'">
|
|
|
+ <view class="left">移库任务编号</view>
|
|
|
+ <view class="right">{{retreatList.moveTaskNo}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row' v-if="retreatList.inOutType != '移库出库'">
|
|
|
+ <view class="left">合同编号</view>
|
|
|
+ <view class="right">{{retreatList.contractNo}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">货名</view>
|
|
|
+ <view class="right">{{retreatList.goodsName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">重量(吨)</view>
|
|
|
+ <view class="right">{{retreatList.weight}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">预计出库日期</view>
|
|
|
+ <view class="right">{{retreatList.predictDate}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">出库经办人</view>
|
|
|
+ <view class="right">{{retreatList.publisher}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">货名</view>
|
|
|
- <view class="right">{{OutList.goodsName}}</view>
|
|
|
+ <view class="uForm_item">
|
|
|
+ <u-form-item label="品级" prop="grade" label-width="150">
|
|
|
+ <u-input v-model="retreatList.grade" input-align="right" placeholder="" @click='show=true'
|
|
|
+ disabled />
|
|
|
+ <u-picker :range="pjList" range-key="type" @confirm='pjPicker($event)' v-model="show"
|
|
|
+ mode="selector">
|
|
|
+ </u-picker>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190">
|
|
|
+ <u-input v-model="retreatList.bulkDensity" input-align="right" placeholder="" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="水分(%)<=" prop="waterContent" label-width="160">
|
|
|
+ <u-input v-model="retreatList.waterContent" input-align="right" placeholder="" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160">
|
|
|
+ <u-input v-model="retreatList.unitPrice" input-align="right" placeholder="" />
|
|
|
+ </u-form-item>
|
|
|
</view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">重量(吨)</view>
|
|
|
- <view class="right">{{OutList.weight}}</view>
|
|
|
- </view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">预计出库日期</view>
|
|
|
- <view class="right">{{OutList.predictDate}}</view>
|
|
|
+ </view>
|
|
|
+ <view v-if="OutList.judge == 1">
|
|
|
+ <view class="uForm_item">
|
|
|
+ <!-- 出库 -->
|
|
|
+ <view class="title part2">{{OutList.inOutType}}</view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">编号</view>
|
|
|
+ <view class="right">出库({{OutList.inOutTaskNo}})</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">仓库</view>
|
|
|
+ <view class="right">{{OutList.sendWarehouse}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">出库类型</view>
|
|
|
+ <view class="right">{{OutList.inOutType}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row' v-if="OutList.inOutType == '移库出库'">
|
|
|
+ <view class="left">移库任务编号</view>
|
|
|
+ <view class="right">{{OutList.moveTaskNo}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row' v-if="OutList.inOutType != '移库出库'">
|
|
|
+ <view class="left">合同编号</view>
|
|
|
+ <view class="right">{{OutList.contractNo}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">货名</view>
|
|
|
+ <view class="right">{{OutList.goodsName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">重量(吨)</view>
|
|
|
+ <view class="right">{{OutList.weight}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">预计出库日期</view>
|
|
|
+ <view class="right">{{OutList.predictDate}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">出库经办人</view>
|
|
|
+ <view class="right">{{OutList.publisher}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">出库经办人</view>
|
|
|
- <view class="right">{{OutList.publisher}}</view>
|
|
|
+
|
|
|
+ <view class="uForm_item">
|
|
|
+ <u-form-item label="品级" prop="grade" label-width="150" v-if="retreatList.inOutType != '退库'">
|
|
|
+ <u-input v-model="OutList.grade" input-align="right" placeholder="" @click='show=true'
|
|
|
+ disabled />
|
|
|
+ <u-picker :range="pjList" range-key="type" @confirm='pjPicker($event)' v-model="show"
|
|
|
+ mode="selector"></u-picker>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190"
|
|
|
+ v-if="retreatList.inOutType != '退库'">
|
|
|
+ <u-input v-model="OutList.bulkDensity" input-align="right" placeholder="" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="水分(%)<=" prop="waterContent" label-width="160"
|
|
|
+ v-if="retreatList.inOutType != '退库'">
|
|
|
+ <u-input v-model="OutList.waterContent" input-align="right" placeholder="" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160"
|
|
|
+ v-if="retreatList.inOutType != '退库'">
|
|
|
+ <u-input v-model="OutList.unitPrice" input-align="right" placeholder="" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top"
|
|
|
+ v-if="OutList.inOutType != '移库出库'">
|
|
|
+ <u-input v-model="OutList.businessDescribe" input-align="left" placeholder="请输入业务描述"
|
|
|
+ type="textarea" class="textarea" maxlength="150" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item v-if="retreatList.inOutType!='退库'" label="仓位号(选填)" prop="binNumber"
|
|
|
+ label-width="170">
|
|
|
+ <u-input v-model="OutList.binNumber" input-align="right" placeholder="未指定" />
|
|
|
+ </u-form-item>
|
|
|
</view>
|
|
|
- <view class="title part2">可编辑项</view>
|
|
|
- <u-form-item label="品级" prop="grade" label-width="150">
|
|
|
- <u-input v-model="OutList.grade" input-align="right" placeholder="" @click='show=true'
|
|
|
- disabled />
|
|
|
- <u-picker :range="pjList" range-key="type" @confirm='pjPicker($event)' v-model="show"
|
|
|
- mode="selector">
|
|
|
- </u-picker>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190">
|
|
|
- <u-input v-model="OutList.bulkDensity" input-align="right" placeholder="" />
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="水分(%)<=" prop="waterContent" label-width="160">
|
|
|
- <u-input v-model="OutList.waterContent" input-align="right" placeholder="" />
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160">
|
|
|
- <u-input v-model="OutList.unitPrice" input-align="right" placeholder="" />
|
|
|
- </u-form-item>
|
|
|
- <u-form-item v-if="type!='移库'&&type!='退库'" label="业务描述" prop="businessDescribe" label-width="160"
|
|
|
- label-position="top">
|
|
|
- <u-input v-model="OutList.businessDescribe" input-align="left" placeholder="" type="textarea"
|
|
|
- class="textarea" />
|
|
|
- </u-form-item>
|
|
|
- <u-form-item v-if="type!='退库'" label="仓位号(选填)" prop="binNumber" label-width="170">
|
|
|
- <u-input v-model="OutList.binNumber" input-align="right" placeholder="未指定" />
|
|
|
- </u-form-item>
|
|
|
+
|
|
|
</view>
|
|
|
<view v-if="EnterList.judge == 2">
|
|
|
- <!-- 入库 -->
|
|
|
- <view class="title part2">{{EnterList.inOutType}}</view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">编号</view>
|
|
|
- <view class="right">{{EnterList.inOutType}} {{EnterList.inOutTaskNo}}</view>
|
|
|
- </view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">仓库</view>
|
|
|
- <view class="right">{{EnterList.warehouseName}}</view>
|
|
|
- </view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">入库类型</view>
|
|
|
- <view class="right">{{EnterList.inOutType}}</view>
|
|
|
+ <view class="uForm_item">
|
|
|
+ <!-- 入库 -->
|
|
|
+ <view class="title part2">{{EnterList.inOutType}}</view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">编号</view>
|
|
|
+ <view class="right">入库({{EnterList.inOutTaskNo}})</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">仓库</view>
|
|
|
+ <view class="right">{{EnterList.warehouseName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">入库类型</view>
|
|
|
+ <view class="right">{{EnterList.inOutType}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row' v-if="EnterList.inOutType == '移库入库'">
|
|
|
+ <view class="left">移库任务编号</view>
|
|
|
+ <view class="right">{{EnterList.moveTaskNo}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row' v-if="EnterList.inOutType != '移库入库'">
|
|
|
+ <view class="left">合同编号</view>
|
|
|
+ <view class="right">{{EnterList.contractNo}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">货名</view>
|
|
|
+ <view class="right">{{EnterList.goodsName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">重量(吨)</view>
|
|
|
+ <view class="right">{{EnterList.weight}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">预计入库日期</view>
|
|
|
+ <view class="right">{{EnterList.predictDate}}</view>
|
|
|
+ </view>
|
|
|
+ <view class='row'>
|
|
|
+ <view class="left">出库经办人</view>
|
|
|
+ <view class="right">{{EnterList.publisher}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class='row' v-if="EnterList.inOutType == '移库入库'">
|
|
|
- <view class="left">移库任务编号</view>
|
|
|
- <view class="right">{{EnterList.moveTaskNo}}</view>
|
|
|
- </view>
|
|
|
- <view class='row' v-if="EnterList.inOutType != '移库入库'">
|
|
|
- <view class="left">合同编号</view>
|
|
|
- <view class="right">{{EnterList.contractNo}}</view>
|
|
|
- </view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">货名</view>
|
|
|
- <view class="right">{{EnterList.goodsName}}</view>
|
|
|
- </view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">重量(吨)</view>
|
|
|
- <view class="right">{{EnterList.weight}}</view>
|
|
|
- </view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">预计入库日期</view>
|
|
|
- <view class="right">{{EnterList.predictDate}}</view>
|
|
|
- </view>
|
|
|
- <view class='row'>
|
|
|
- <view class="left">出库经办人</view>
|
|
|
- <view class="right">{{EnterList.publisher}}</view>
|
|
|
+
|
|
|
+ <view class="uForm_item">
|
|
|
+ <u-form-item label="品级" prop="grade" label-width="150" v-if="EnterList.inOutType != '移库入库' ">
|
|
|
+ <u-input v-model="EnterList.grade" input-align="right" placeholder="请选择品级"
|
|
|
+ @click='show=true' disabled />
|
|
|
+ <u-picker :range="pjList" range-key="type" @confirm='pjPicker1($event)' v-model="show"
|
|
|
+ mode="selector">
|
|
|
+ </u-picker>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190"
|
|
|
+ v-if="EnterList.inOutType != '移库入库'">
|
|
|
+ <u-input v-model="EnterList.bulkDensity" input-align="right" placeholder="请输入容重占比" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="水分(%)<=" prop="waterContent" label-width="160"
|
|
|
+ v-if="EnterList.inOutType != '移库入库'">
|
|
|
+ <u-input v-model="EnterList.waterContent" input-align="right" placeholder="请输入水分占比" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160"
|
|
|
+ v-if="EnterList.inOutType != '移库入库'">
|
|
|
+ <u-input v-model="EnterList.unitPrice" input-align="right" placeholder="请输入单价" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top">
|
|
|
+ <u-input v-model="EnterList.businessDescribe" input-align="left" placeholder="请输入业务描述"
|
|
|
+ type="textarea" class="textarea" maxlength="150" />
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item v-if="OutList.inOutType!='退库'" label="仓位号(选填)" prop="binNumber" label-width="170">
|
|
|
+ <u-input v-model="EnterList.binNumber" input-align="right" placeholder="未指定" />
|
|
|
+ </u-form-item>
|
|
|
</view>
|
|
|
- <view class="title part2">可编辑项</view>
|
|
|
- <u-form-item label="品级" prop="grade" label-width="150">
|
|
|
- <u-input v-model="EnterList.grade" input-align="right" placeholder="" @click='show=true'
|
|
|
- disabled />
|
|
|
- <u-picker :range="pjList" range-key="type" @confirm='pjPicker1($event)' v-model="show"
|
|
|
- mode="selector">
|
|
|
- </u-picker>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190">
|
|
|
- <u-input v-model="EnterList.bulkDensity" input-align="right" placeholder="" />
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="水分(%)<=" prop="waterContent" label-width="160">
|
|
|
- <u-input v-model="EnterList.waterContent" input-align="right" placeholder="" />
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160">
|
|
|
- <u-input v-model="EnterList.unitPrice" input-align="right" placeholder="" />
|
|
|
- </u-form-item>
|
|
|
- <u-form-item v-if="type!='移库'&&type!='退库'" label="业务描述" prop="businessDescribe" label-width="160"
|
|
|
- label-position="top">
|
|
|
- <u-input v-model="EnterList.businessDescribe" input-align="left" placeholder="" type="textarea"
|
|
|
- class="textarea" />
|
|
|
- </u-form-item>
|
|
|
- <u-form-item v-if="type!='退库'" label="仓位号(选填)" prop="binNumber" label-width="170">
|
|
|
- <u-input v-model="EnterList.binNumber" input-align="right" placeholder="未指定" />
|
|
|
- </u-form-item>
|
|
|
- </view>
|
|
|
- <!-- <view v-if="type=='移库'">
|
|
|
- <view class="title part2">移库入库</view>
|
|
|
- <u-form-item label="编号" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="仓库" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="入库类型" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="移库任务编号" prop="receivingAddress" label-width="180">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="货名" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="重量(吨)" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="预计入库时间" prop="receivingAddress" label-width="180">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="入库经办人" prop="receivingAddress" label-width="150">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="品级" prop="receivingAddress" label-width="150">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" @click='show=true' disabled/>
|
|
|
- <u-picker :range="pjList" range-key="type" @confirm='pjPicker($event)' v-model="show" mode="selector">
|
|
|
- </u-picker>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="容重(克/升)>=" prop="receivingAddress" label-width="190">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder=""/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="水分(%)<=" prop="receivingAddress" label-width="160">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder=""/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="单价(元/吨)" prop="receivingAddress" label-width="160">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder=""/>
|
|
|
- </u-form-item>
|
|
|
- <view class="title part2">可编辑项</view>
|
|
|
- <u-form-item label="业务描述" prop="receivingAddress" label-width="160" label-position="top">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="left" placeholder="" type="textarea" class="textarea"/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="仓位号(选填)" prop="receivingAddress" label-width="170">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="未指定"/>
|
|
|
- </u-form-item>
|
|
|
+
|
|
|
</view>
|
|
|
- <view v-if="type=='退库'">
|
|
|
- <view class="title part2">出</view>
|
|
|
- <u-form-item label="编号" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="仓库" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="出库类型" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="合同编号" prop="receivingAddress" label-width="180">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="货名" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="重量(吨)" prop="receivingAddress" label-width="140">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="预计出库时间" prop="receivingAddress" label-width="180">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="出库经办人" prop="receivingAddress" label-width="150">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" disabled/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="品级" prop="receivingAddress" label-width="150">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="" @click='show=true' disabled/>
|
|
|
- <u-picker :range="pjList" range-key="type" @confirm='pjPicker($event)' v-model="show" mode="selector">
|
|
|
- </u-picker>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="容重(克/升)>=" prop="receivingAddress" label-width="190">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder=""/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="水分(%)<=" prop="receivingAddress" label-width="160">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder=""/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="单价(元/吨)" prop="receivingAddress" label-width="160">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder=""/>
|
|
|
- </u-form-item>
|
|
|
- <view class="title part2">可编辑项</view>
|
|
|
- <u-form-item label="业务描述" prop="receivingAddress" label-width="160" label-position="top">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="left" placeholder="" type="textarea" class="textarea"/>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="仓位号(选填)" prop="receivingAddress" label-width="170">
|
|
|
- <u-input v-model="purchaseOrder.receivingAddress" input-align="right" placeholder="未指定"/>
|
|
|
- </u-form-item>
|
|
|
- </view> -->
|
|
|
</u-form>
|
|
|
</view>
|
|
|
+ <u-popup v-model="show1" mode="center">
|
|
|
+ <view style="width: 300px;padding: 30rpx 10rpx;border-radius: 20rpx;">
|
|
|
+ <view class="rejectText">驳回原因</view>
|
|
|
+ <u-input v-model="rejectInfo" type="textarea" :border="border" class="rejectInfoCss"
|
|
|
+ placeholder="请输入驳回原因" />
|
|
|
+ <view class="flex">
|
|
|
+ <u-button @click="show1 = false" class="submit">取消</u-button>
|
|
|
+ <u-button @click="rejectSubmit()" class="submit">确定</u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
<u-toast ref="uToast" />
|
|
|
- <!-- <u-modal v-model="show" content="确定通过出入库任务?" showCancelButton></u-modal> -->
|
|
|
- <view class="bottom-btn">
|
|
|
- <!-- <u-button type="primary" class="submit" hover-class="none" @click="rejectSubmit()">驳回</u-button>
|
|
|
- <u-button type="primary" class="submit" hover-class="none" @click="passSubmit()">通过</u-button> -->
|
|
|
- <u-button type="primary" class="submit" hover-class="none" @click="passSubmit()">{{OutList.taskStatus}}</u-button>
|
|
|
-
|
|
|
- </view>
|
|
|
+ <!-- <view style='padding:10px;' class='flex bottom-btn'>
|
|
|
+ <u-button @click='show1 = true' type="error" class="btn1" hover-class='none'>驳回</u-button>
|
|
|
+ <u-button @click='passSubmit()' type="success" class="btn2">通过</u-button>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
@@ -255,16 +257,14 @@
|
|
|
data() {
|
|
|
return {
|
|
|
id: "",
|
|
|
- OutList: {},
|
|
|
- EnterList: {},
|
|
|
+ OutList: {}, //出
|
|
|
+ EnterList: {}, //入
|
|
|
+ retreatList: {}, //退
|
|
|
type: '移库',
|
|
|
show: false,
|
|
|
- purchaseOrder: {
|
|
|
- freightUnitPrice: "123",
|
|
|
- receivingAddress: '出库',
|
|
|
- grade: "1"
|
|
|
- },
|
|
|
-
|
|
|
+ show1: false,
|
|
|
+ border: false,
|
|
|
+ rejectInfo: "", //驳回原因
|
|
|
pjList: [{
|
|
|
type: '一等品'
|
|
|
},
|
|
@@ -278,28 +278,11 @@
|
|
|
type: '等外'
|
|
|
}
|
|
|
],
|
|
|
- rules: {
|
|
|
- freightUnitPrice: [{
|
|
|
- validator: (rule, value, callback) => {
|
|
|
- return !this.$u.test.isEmpty(value)
|
|
|
- },
|
|
|
- message: '运费不能为空',
|
|
|
- trigger: ['change', 'blur']
|
|
|
- },
|
|
|
- {
|
|
|
- validator: (rule, value, callback) => {
|
|
|
- return this.$u.test.amount(value)
|
|
|
- },
|
|
|
- message: '数值类型,最多保留两位小数',
|
|
|
- trigger: ['change', 'blur'],
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
}
|
|
|
},
|
|
|
- onReady() {
|
|
|
- this.$refs.uForm.setRules(this.rules);
|
|
|
- },
|
|
|
+ // onReady() {
|
|
|
+ // this.$refs.uForm.setRules(this.rules);
|
|
|
+ // },
|
|
|
onLoad(options) {
|
|
|
this.id = options.id
|
|
|
this.getList()
|
|
@@ -323,13 +306,15 @@
|
|
|
res.data.data[i].inOutType == "暂存出库") {
|
|
|
this.OutList = res.data.data[i]
|
|
|
this.OutList.judge = 1
|
|
|
- }
|
|
|
- if (res.data.data[i].inOutType == "移库入库" || res.data.data[i]
|
|
|
- .inOutType == "暂存入库" || res.data.data[i].inOutType == "退库" || res
|
|
|
+ } else if (res.data.data[i].inOutType == "移库入库" || res.data.data[i]
|
|
|
+ .inOutType == "暂存入库" || res
|
|
|
.data.data[i].inOutType == "采购入库" || res.data.data[i].inOutType ==
|
|
|
"贸易服务入库") {
|
|
|
this.EnterList = res.data.data[i]
|
|
|
this.EnterList.judge = 2
|
|
|
+ } else if (res.data.data[i].inOutType == "退库") {
|
|
|
+ this.retreatList = res.data.data[i]
|
|
|
+ this.retreatList.judge = 3
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -363,17 +348,23 @@
|
|
|
}
|
|
|
},
|
|
|
rejectSubmit() {
|
|
|
- if (this.EnterList.taskTypeKey == 1) {
|
|
|
- this.requestaudit(this.EnterList)
|
|
|
- } else if (this.EnterList.taskTypeKey == 2) {
|
|
|
- this.requestaudit(this.EnterList)
|
|
|
- } else if (
|
|
|
- this.EnterList.taskTypeKey == 3 ||
|
|
|
- this.EnterList.taskTypeKey == 4
|
|
|
- ) {
|
|
|
- this.requestaudit(this.EnterList, 'repetition')
|
|
|
- if (!this.deletetask) {
|
|
|
- this.requestaudit(this.EnterList, 'repetition')
|
|
|
+ // (1出库2入库3移库4退库并出库)
|
|
|
+ if (!this.rejectInfo) {
|
|
|
+ this.$api.msg('驳回原因不能为空!')
|
|
|
+ } else {
|
|
|
+ this.show1 = false
|
|
|
+ if (this.OutList.taskTypeKey == 1) {
|
|
|
+ this.requestaudit(this.OutList)
|
|
|
+ } else if (this.OutList.taskTypeKey == 2) {
|
|
|
+ this.requestaudit(this.OutList)
|
|
|
+ } else if (
|
|
|
+ this.OutList.taskTypeKey == 3 ||
|
|
|
+ this.OutList.taskTypeKey == 4
|
|
|
+ ) {
|
|
|
+ this.requestaudit(this.OutList, 'repetition')
|
|
|
+ if (!this.deletetask) {
|
|
|
+ this.requestaudit(this.OutList, 'repetition')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -382,7 +373,7 @@
|
|
|
list.publisher = this.userInfo.userName
|
|
|
this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', {
|
|
|
+ this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
taskId: list.taskId,
|
|
|
approved: true,
|
|
|
auditMind: '34',
|
|
@@ -390,6 +381,9 @@
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$api.msg('审核成功!')
|
|
|
+ this.setTimeout(function() {
|
|
|
+ uni.navigateBack()
|
|
|
+ }, 1000);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -400,14 +394,17 @@
|
|
|
list.publisher = this.userInfo.userName
|
|
|
this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', {
|
|
|
+ this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
taskId: list.taskId,
|
|
|
approved: false,
|
|
|
- auditMind: "驳回原因",
|
|
|
+ auditMind: this.rejectInfo,
|
|
|
needReapply: true
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$api.msg('驳回成功!')
|
|
|
+ this.setTimeout(function() {
|
|
|
+ uni.navigateBack()
|
|
|
+ }, 1000);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -418,18 +415,17 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
- .content1,
|
|
|
- .content2 {
|
|
|
- background-color: #FFFFFF;
|
|
|
+ .content1 {
|
|
|
margin: 10rpx;
|
|
|
- padding-bottom: 10rpx;
|
|
|
- border-radius: 20rpx;
|
|
|
+ padding-bottom: 224rpx;
|
|
|
|
|
|
.title {
|
|
|
- font-size: 28rpx;
|
|
|
+ height: 70rpx;
|
|
|
+ line-height: 60rpx;
|
|
|
+ font-size: 32rpx;
|
|
|
font-weight: 600;
|
|
|
color: #333333;
|
|
|
- text-align: center;
|
|
|
+ border-bottom: 2rpx solid #EEEEEE;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -444,9 +440,24 @@
|
|
|
.bottom-btn {
|
|
|
width: 100%;
|
|
|
position: fixed;
|
|
|
- bottom: 40rpx;
|
|
|
+ bottom: 0;
|
|
|
display: flex;
|
|
|
z-index: 2;
|
|
|
+ left: 0;
|
|
|
+ background-color: #f8f8f8;
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+ .btn1,
|
|
|
+ .btn2 {
|
|
|
+ width: 100%;
|
|
|
+ margin-bottom: 26rpx;
|
|
|
+ border-radius: 90rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn1 {
|
|
|
+ background: white;
|
|
|
+ color: #00C265;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.submit {
|
|
@@ -461,12 +472,15 @@
|
|
|
|
|
|
.textarea {
|
|
|
border: 1px solid #ccc;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ background-color: #F9F9FA;
|
|
|
+ height: 100px;
|
|
|
}
|
|
|
|
|
|
.row {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- border-bottom: 1px solid #EEEEEE;
|
|
|
+ // border-bottom: 1px solid #EEEEEE;
|
|
|
padding: 21rpx 0;
|
|
|
|
|
|
.right,
|
|
@@ -475,4 +489,58 @@
|
|
|
color: #333333;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //弹出框
|
|
|
+ // .popup {
|
|
|
+ // padding: 30rpx;
|
|
|
+ // border-radius: 20rpx;
|
|
|
+ // }
|
|
|
+ .rejectInfoCss {
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ background-color: #F9F9FA;
|
|
|
+ height: 100px;
|
|
|
+ margin: 30rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .uForm_item {
|
|
|
+ padding: 20rpx;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ margin: 20rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .rejectText {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .topInfo {
|
|
|
+ height: 210rpx;
|
|
|
+ background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
|
|
|
+ padding: 30rpx;
|
|
|
+
|
|
|
+ .topInfo-item {
|
|
|
+ height: 150rpx;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ padding: 40rpx;
|
|
|
+
|
|
|
+ .logo {
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ margin-top: 8rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .infoText {
|
|
|
+ font-size: 36rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .infoData {
|
|
|
+ color: #878C9C;
|
|
|
+ font-size: 26rpx;
|
|
|
+ margin-top: 10rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|