|
@@ -20,6 +20,48 @@
|
|
|
>返回列表</el-button
|
|
|
>
|
|
|
</div>
|
|
|
+ <div v-if="showApproval == 0">
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ size="small"
|
|
|
+ @click="addOrUpdateHandle(form, 'warehouse_status')"
|
|
|
+ v-if="form.warehouseStatus > 3"
|
|
|
+ >查看接单审批
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ size="small"
|
|
|
+ @click="addOrUpdateHand(form, 'warehouse_status')"
|
|
|
+ v-if="form.warehouseStatus > 3 && approVal == true"
|
|
|
+ >接单审批
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus==4"
|
|
|
+ size="small"
|
|
|
+ @click="verifyForm"
|
|
|
+ v-if="form.fBillstatus"
|
|
|
+ >接单请核
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ size="small"
|
|
|
+ @click="ordersRevoke"
|
|
|
+ v-if="form.warehouseStatus > 3"
|
|
|
+ >撤销接单请核
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ size="small"
|
|
|
+ @click="revokeTwo('warehouse_status')"
|
|
|
+ v-if="form.warehouseStatus > 3"
|
|
|
+ >撤销接单审批
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
<!-- <el-button icon="el-icon-refresh" circle size="mini"></el-button> -->
|
|
|
</div>
|
|
|
|
|
@@ -35,7 +77,7 @@
|
|
|
placeholder="请输入关键词"
|
|
|
style="width: 80%"
|
|
|
@change="changefStltype"
|
|
|
- :disabled="detailList.length > 0"
|
|
|
+ :disabled="detailList.length > 0 || form.warehouseStatus > 3"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in fMblnoOptions"
|
|
@@ -56,7 +98,7 @@
|
|
|
v-model="form.fStltypeid"
|
|
|
placeholder="请选择结算方式"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -78,7 +120,7 @@
|
|
|
v-model="form.fFeetUnit"
|
|
|
placeholder="请选择计费单位"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -94,7 +136,11 @@
|
|
|
<el-form-item label="提单号" prop="fMblno">
|
|
|
<el-input
|
|
|
v-model="form.fMblno"
|
|
|
- :disabled="browseStatus || detailList.length > 0"
|
|
|
+ :disabled="
|
|
|
+ browseStatus ||
|
|
|
+ detailList.length > 0 ||
|
|
|
+ form.warehouseStatus > 3
|
|
|
+ "
|
|
|
style="width: 80%"
|
|
|
placeholder="请输入提单号"
|
|
|
/>
|
|
@@ -108,7 +154,7 @@
|
|
|
v-model="form.fBsdate"
|
|
|
style="width: 80%"
|
|
|
type="date"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
value-format="timestamp"
|
|
|
placeholder="请选择计划日期"
|
|
|
@change="changeDate"
|
|
@@ -120,7 +166,7 @@
|
|
|
<el-form-item label="入库时间" prop="fBstime">
|
|
|
<el-time-picker
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
v-model="form.fBstime"
|
|
|
:picker-options="{
|
|
|
selectableRange: '00:00:00 - 23:59:59',
|
|
@@ -138,7 +184,7 @@
|
|
|
type="date"
|
|
|
style="width: 80%"
|
|
|
value-format="timestamp"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
placeholder="仓储费计算日期"
|
|
|
>
|
|
|
</el-date-picker>
|
|
@@ -151,7 +197,11 @@
|
|
|
filterable
|
|
|
v-model="form.fGoodsid"
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus || detailList.length > 0"
|
|
|
+ :disabled="
|
|
|
+ browseStatus ||
|
|
|
+ detailList.length > 0 ||
|
|
|
+ form.warehouseStatus > 3
|
|
|
+ "
|
|
|
placeholder="请选择品名"
|
|
|
>
|
|
|
<el-option
|
|
@@ -168,7 +218,11 @@
|
|
|
<el-select
|
|
|
v-model="form.fWarehouseid"
|
|
|
filterable
|
|
|
- :disabled="browseStatus || detailList.length > 0"
|
|
|
+ :disabled="
|
|
|
+ browseStatus ||
|
|
|
+ detailList.length > 0 ||
|
|
|
+ form.warehouseStatus > 3
|
|
|
+ "
|
|
|
style="width: 80%"
|
|
|
placeholder="请选择"
|
|
|
>
|
|
@@ -187,7 +241,7 @@
|
|
|
v-model="form.fStorekeeper"
|
|
|
filterable
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
style="width: 80%"
|
|
|
placeholder="请输入模糊查找"
|
|
|
>
|
|
@@ -208,7 +262,7 @@
|
|
|
v-model="form.fEta"
|
|
|
style="width: 80%"
|
|
|
type="date"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
value-format="timestamp"
|
|
|
placeholder="到港日期"
|
|
|
>
|
|
@@ -221,7 +275,7 @@
|
|
|
v-model="form.freeContainerDate"
|
|
|
style="width: 80%"
|
|
|
type="date"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
value-format="timestamp"
|
|
|
placeholder="请选择箱使日期"
|
|
|
>
|
|
@@ -234,7 +288,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fCustomno"
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
placeholder="报关单号"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -249,7 +303,9 @@
|
|
|
maxlength="9"
|
|
|
v-input-limit="0"
|
|
|
placeholder="计划件数"
|
|
|
- :disabled="browseStatus || current !== before"
|
|
|
+ :disabled="
|
|
|
+ browseStatus || current !== before || form.warehouseStatus > 3
|
|
|
+ "
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -261,7 +317,9 @@
|
|
|
maxlength="9"
|
|
|
v-input-limit="2"
|
|
|
placeholder="计划净重"
|
|
|
- :disabled="browseStatus || current !== before"
|
|
|
+ :disabled="
|
|
|
+ browseStatus || current !== before || form.warehouseStatus > 3
|
|
|
+ "
|
|
|
@change="tfNetweight"
|
|
|
>
|
|
|
<template slot="append">{{ tfNetweightnum }}吨</template>
|
|
@@ -276,7 +334,9 @@
|
|
|
style="width: 80%"
|
|
|
placeholder="计划毛重"
|
|
|
maxlength="9"
|
|
|
- :disabled="browseStatus || current !== before"
|
|
|
+ :disabled="
|
|
|
+ browseStatus || current !== before || form.warehouseStatus > 3
|
|
|
+ "
|
|
|
@change="tfGrossweight"
|
|
|
>
|
|
|
<template slot="append">{{ tfGrossweightnum }}吨</template>
|
|
@@ -294,10 +354,10 @@
|
|
|
filterable
|
|
|
@change="educationChange"
|
|
|
:disabled="
|
|
|
- contrOl ||
|
|
|
browseStatus ||
|
|
|
warehouseDrList.length > 0 ||
|
|
|
- warehouseCrList.length > 0
|
|
|
+ warehouseCrList.length > 0 ||
|
|
|
+ form.warehouseStatus > 3
|
|
|
"
|
|
|
>
|
|
|
<el-option
|
|
@@ -317,7 +377,7 @@
|
|
|
clearable
|
|
|
filterable
|
|
|
placeholder="请输入关键词"
|
|
|
- :disabled="contrOl || browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in fCompanyOptIons"
|
|
@@ -344,7 +404,7 @@
|
|
|
clearable
|
|
|
filterable
|
|
|
placeholder="请输入关键词"
|
|
|
- :disabled="contrOl || browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in fleetOptions"
|
|
@@ -367,7 +427,7 @@
|
|
|
v-model="form.fFeetUnit"
|
|
|
placeholder="请选择计费单位"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -387,7 +447,7 @@
|
|
|
v-model="form.fStltypeid"
|
|
|
placeholder="请选择结算方式"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -412,7 +472,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fTruckno"
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
placeholder="车号"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -430,7 +490,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fDriverName"
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
placeholder="司机姓名"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -455,7 +515,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fDriverIdCar"
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
placeholder="司机身份证"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -473,7 +533,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fDriverTel"
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
placeholder="司机电话"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -488,7 +548,7 @@
|
|
|
style="width: 91.5%"
|
|
|
v-model="form.remark"
|
|
|
type="textarea"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
placeholder="请输入内容"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -592,7 +652,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fContacts"
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
placeholder="仓库联系人"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -601,7 +661,7 @@
|
|
|
<el-form-item label="仓库电话" prop="fTel">
|
|
|
<el-input
|
|
|
v-model="form.fTel"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
placeholder="请输仓库入电话"
|
|
|
/>
|
|
@@ -612,7 +672,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fVslvoy"
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
placeholder="船名航次"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -627,6 +687,7 @@
|
|
|
filterable
|
|
|
placeholder="请输入关键词"
|
|
|
style="width: 80%"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in fSbuOptions"
|
|
@@ -652,7 +713,7 @@
|
|
|
<el-select
|
|
|
v-model="form.fTrademodeid"
|
|
|
placeholder="请选择贸易方式"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
clearable
|
|
|
style="width: 80%"
|
|
|
>
|
|
@@ -696,7 +757,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item disabled label="制单日期" prop="createTime">
|
|
|
+ <el-form-item label="制单日期" prop="createTime">
|
|
|
<el-date-picker
|
|
|
v-model="form.createTime"
|
|
|
size="large"
|
|
@@ -717,7 +778,7 @@
|
|
|
v-model="form.fIfweigh"
|
|
|
placeholder="请选择是否过磅"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -767,7 +828,7 @@
|
|
|
v-model="form.fIfpledge"
|
|
|
placeholder="请选择是否质押"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -786,7 +847,7 @@
|
|
|
filterable
|
|
|
clearable
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
placeholder="请输入关键词"
|
|
|
>
|
|
|
<el-option
|
|
@@ -806,7 +867,7 @@
|
|
|
v-model="form.fBusinessAttribution"
|
|
|
placeholder="请选择业务归属"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -826,7 +887,7 @@
|
|
|
filterable
|
|
|
placeholder="请输入关键词"
|
|
|
style="width: 80%"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in fMblnoOptions"
|
|
@@ -843,7 +904,7 @@
|
|
|
v-model="form.fDeclarationElements"
|
|
|
placeholder="请选择申报要素"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -864,7 +925,7 @@
|
|
|
style="width: 80%"
|
|
|
placeholder="料件号"
|
|
|
v-input-limit="0"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -874,7 +935,7 @@
|
|
|
v-model="form.fIfinspection"
|
|
|
placeholder="是否法检"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -893,7 +954,7 @@
|
|
|
style="width: 80%"
|
|
|
placeholder="货值"
|
|
|
v-input-limit="2"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -905,7 +966,7 @@
|
|
|
v-model="form.fWeighingDate"
|
|
|
style="width: 80%"
|
|
|
type="date"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
value-format="timestamp"
|
|
|
placeholder="请选择过磅时间"
|
|
|
>
|
|
@@ -918,7 +979,7 @@
|
|
|
v-model="form.fIfsampling"
|
|
|
placeholder="是否取样"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -936,7 +997,7 @@
|
|
|
v-model="form.sendSampleDate"
|
|
|
style="width: 80%"
|
|
|
type="date"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
value-format="timestamp"
|
|
|
placeholder="请选择送样时间"
|
|
|
>
|
|
@@ -951,7 +1012,7 @@
|
|
|
v-model="form.fIfweightRecovery"
|
|
|
placeholder="是否复磅"
|
|
|
clearable
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
style="width: 80%"
|
|
|
>
|
|
|
<el-option
|
|
@@ -969,7 +1030,7 @@
|
|
|
v-model="form.weightRecoveryDate"
|
|
|
style="width: 80%"
|
|
|
type="date"
|
|
|
- :disabled="browseStatus"
|
|
|
+ :disabled="browseStatus||form.warehouseStatus>3"
|
|
|
value-format="timestamp"
|
|
|
placeholder="请选择复磅时间"
|
|
|
>
|
|
@@ -2533,13 +2594,13 @@
|
|
|
type="primary"
|
|
|
:disabled="approvalStatus"
|
|
|
v-if="form.fBillstatus > 3"
|
|
|
- @click="addOrUpdateHandle(form)"
|
|
|
+ @click="addOrUpdateHandle(form, 'f_billstatus')"
|
|
|
>查看审批</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
v-if="approVal === true"
|
|
|
- @click="addOrUpdateHand(form)"
|
|
|
+ @click="addOrUpdateHand(form, 'f_billstatus')"
|
|
|
>审批</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -2580,7 +2641,7 @@
|
|
|
type="danger"
|
|
|
v-if="form.fBillstatus === 4 && current == before"
|
|
|
:disabled="doNot"
|
|
|
- @click="revokeTwo"
|
|
|
+ @click="revokeTwo('f_billstatus')"
|
|
|
>撤销审批</el-button
|
|
|
>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
@@ -2604,6 +2665,8 @@ import {
|
|
|
revoke,
|
|
|
revokeTwo,
|
|
|
delinStock_s,
|
|
|
+ submitWarehousingApproval,
|
|
|
+ ordersRevoke,
|
|
|
} from "@/api/warehouseBusiness/warehouseInStock";
|
|
|
import { operationAgreement } from "@/api/agreement/agreement";
|
|
|
import { listCorps } from "@/api/basicdata/corps";
|
|
@@ -2705,7 +2768,6 @@ export default {
|
|
|
fFeetUnitOptions: [],
|
|
|
current: "",
|
|
|
before: "",
|
|
|
- contrOl: false,
|
|
|
isrequired: 2,
|
|
|
isrequired2: 2,
|
|
|
detailsHidden: false,
|
|
@@ -2976,6 +3038,7 @@ export default {
|
|
|
ifinspectionList: [],
|
|
|
ifsamplingList: [],
|
|
|
ifweightRecoveryList: [],
|
|
|
+ showApproval: null,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -3033,6 +3096,9 @@ export default {
|
|
|
this.form.fBusinessType = "0";
|
|
|
}
|
|
|
});
|
|
|
+ this.getConfigKey("instock.orders.approval").then((response) => {
|
|
|
+ this.showApproval = response.msg;
|
|
|
+ });
|
|
|
listWarehousesss({ fStatus: 0, delFlag: 0 }).then((response) => {
|
|
|
this.warehouseOptions = response.rows;
|
|
|
});
|
|
@@ -3298,17 +3364,38 @@ export default {
|
|
|
onEnd() {
|
|
|
this.drag = false;
|
|
|
},
|
|
|
+ //撤销请核
|
|
|
+ revoke() {
|
|
|
+ revoke(this.form.fId).then((data) => {
|
|
|
+ if (data.code === 200) {
|
|
|
+ this.browseStatus = false;
|
|
|
+ this.msgSuccess("撤销成功");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ ordersRevoke() {
|
|
|
+ ordersRevoke(this.form.fId).then((data) => {
|
|
|
+ if (data.code === 200) {
|
|
|
+ this.browseStatus = false;
|
|
|
+ this.msgSuccess("撤销成功");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//撤销审批
|
|
|
- revokeTwo() {
|
|
|
+ revokeTwo(status) {
|
|
|
let data = {
|
|
|
actId: 110,
|
|
|
billId: this.form.fId,
|
|
|
id: this.form.fId,
|
|
|
+ fidStatus: status,
|
|
|
};
|
|
|
revokeTwo(data).then((data) => {
|
|
|
if (data.code === 200) {
|
|
|
this.browseStatus = false;
|
|
|
this.msgSuccess("撤销成功");
|
|
|
+ if(status){
|
|
|
+ this.$set(this.form,"warehouseStatus",2)
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -3320,17 +3407,17 @@ export default {
|
|
|
this.addOrUpdateVisib = false;
|
|
|
this.$router.push({ path: "/index" });
|
|
|
},
|
|
|
- addOrUpdateHandle(form) {
|
|
|
+ addOrUpdateHandle(form, status) {
|
|
|
this.addOrUpdateVisible = true;
|
|
|
let actId = "110";
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.addOrUpdate.init(form.fId, actId);
|
|
|
+ this.$refs.addOrUpdate.init(form.fId, actId, status);
|
|
|
});
|
|
|
},
|
|
|
- addOrUpdateHand(form) {
|
|
|
+ addOrUpdateHand(form, status) {
|
|
|
this.addOrUpdateVisib = true;
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.ApprovalComments.init(form.fId, 110);
|
|
|
+ this.$refs.ApprovalComments.init(form.fId, status, 110);
|
|
|
});
|
|
|
},
|
|
|
changefStltype(row) {
|
|
@@ -3910,6 +3997,92 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ verifyForm() {
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ // 附件数据
|
|
|
+ this.form.fBillingway = this.form.fFeetUnit;
|
|
|
+ if (this.detailList.length == 0) {
|
|
|
+ this.form.fNetweight = 0;
|
|
|
+ this.form.fPlanvolumn = 0;
|
|
|
+ this.form.fGrossweight = 0;
|
|
|
+ } else {
|
|
|
+ this.form.fNetweight = this.fNetweight;
|
|
|
+ this.form.fPlanvolumn = this.fPlanvolumn;
|
|
|
+ this.form.fGrossweight = this.fGrossweight;
|
|
|
+ }
|
|
|
+ if (this.CntrTable.length > 0) {
|
|
|
+ let arr = [];
|
|
|
+ this.CntrTable.map((e) => {
|
|
|
+ this.cntrList.map((item) => {
|
|
|
+ if (item.fId == e.fCntrid) {
|
|
|
+ arr.push(item.fName + "X" + e.fCntrcount);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ arr = [...new Set(arr)];
|
|
|
+ this.form.fCntval = arr.join(",");
|
|
|
+ } else {
|
|
|
+ this.form.fCntval = null;
|
|
|
+ }
|
|
|
+ if (this.detailList.length > 0) {
|
|
|
+ let arr = [];
|
|
|
+ this.detailList.map((e) => {
|
|
|
+ this.goodsOptions.map((item) => {
|
|
|
+ if (e.fGoodsid == item.fId) {
|
|
|
+ arr.push(item.fName);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ arr = [...new Set(arr)];
|
|
|
+ this.form.fProductName = arr.join(",");
|
|
|
+ } else {
|
|
|
+ this.form.fProductName = "";
|
|
|
+ }
|
|
|
+ if (this.detailList.length > 0) {
|
|
|
+ let arr = [];
|
|
|
+ this.detailList.map((e) => {
|
|
|
+ arr.push(e.fMarks);
|
|
|
+ });
|
|
|
+ arr = [...new Set(arr)];
|
|
|
+ this.form.fMarks = arr.join(",");
|
|
|
+ } else {
|
|
|
+ this.form.fMarks = "";
|
|
|
+ }
|
|
|
+ let formData = new window.FormData();
|
|
|
+ formData.append("tWarehouseBills", JSON.stringify(this.form));
|
|
|
+ // 库存明细
|
|
|
+ formData.append(
|
|
|
+ "tWarehousebillsitems",
|
|
|
+ JSON.stringify(this.detailList)
|
|
|
+ );
|
|
|
+ // 附件数据
|
|
|
+ formData.append(
|
|
|
+ "tEnclosure",
|
|
|
+ JSON.stringify(this.relevantAttachments)
|
|
|
+ );
|
|
|
+ // 费用明细付款
|
|
|
+ formData.append(
|
|
|
+ "tWarehousebillsfeesCr",
|
|
|
+ JSON.stringify(this.warehouseCrList)
|
|
|
+ );
|
|
|
+ // 收款
|
|
|
+ formData.append(
|
|
|
+ "tWarehousebillsfeesDr",
|
|
|
+ JSON.stringify(this.warehouseDrList)
|
|
|
+ );
|
|
|
+ formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
|
|
|
+ formData.append("tCntr", JSON.stringify(this.CntrTable));
|
|
|
+ submitWarehousingApproval(formData).then((response) => {
|
|
|
+ if (response.code == 200) {
|
|
|
+ this.msgSuccess("请核成功");
|
|
|
+ this.$set(this.form, "warehouseStatus", 4);
|
|
|
+ this.cancel()
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
saveForm(status) {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|