|
@@ -255,7 +255,6 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
- v-if="scope.row.fBillstatus === '6'"
|
|
|
@click="handleUpdate(scope.row, true)"
|
|
|
v-hasPermi="['warehouseBusiness:warehousebills:edit']"
|
|
|
>查看
|
|
@@ -264,7 +263,6 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
- v-if="scope.row.fBillstatus !== '6'"
|
|
|
@click="handleUpdate(scope.row, false)"
|
|
|
v-hasPermi="['warehouseBusiness:warehousebills:edit']"
|
|
|
>修改
|
|
@@ -273,8 +271,8 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
v-if="scope.row.fBillstatus !== '6'"
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['warehouseBusiness:warehousebills:remove']"
|
|
|
>删除
|
|
|
</el-button>
|
|
@@ -304,7 +302,7 @@
|
|
|
v-model="form.fCorpid"
|
|
|
filterable
|
|
|
remote
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
:remote-method="corpsRemoteMethod"
|
|
|
placeholder="请选择货权方"
|
|
@@ -324,7 +322,7 @@
|
|
|
v-model="form.fStltypeid"
|
|
|
placeholder="请选择结算方式"
|
|
|
clearable
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
>
|
|
|
<el-option
|
|
@@ -340,7 +338,7 @@
|
|
|
<el-form-item label="提单号" prop="fMblno">
|
|
|
<el-input
|
|
|
v-model="form.fMblno"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
placeholder="手工输入"
|
|
|
/>
|
|
@@ -354,7 +352,7 @@
|
|
|
v-model="form.fBsdate"
|
|
|
style="width: 250px"
|
|
|
type="date"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
@change="changefBsdate"
|
|
|
value-format="timestamp"
|
|
|
placeholder="业务日期"
|
|
@@ -369,7 +367,7 @@
|
|
|
v-model="form.fStorekeeper"
|
|
|
filterable
|
|
|
remote
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
:remote-method="userRemoteMethod"
|
|
|
placeholder="请选择仓管员"
|
|
@@ -388,7 +386,7 @@
|
|
|
<el-select
|
|
|
v-model="form.fWarehouseid"
|
|
|
filterable
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
remote
|
|
|
style="width: 250px"
|
|
|
:remote-method="warehouseRemoteMethod"
|
|
@@ -422,7 +420,7 @@
|
|
|
v-model="form.fIfdamage"
|
|
|
placeholder="请选择是否破损"
|
|
|
clearable
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
>
|
|
|
<el-option
|
|
@@ -440,7 +438,7 @@
|
|
|
v-model="form.fIfweigh"
|
|
|
placeholder="请选择是否过磅"
|
|
|
clearable
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
>
|
|
|
<el-option
|
|
@@ -461,7 +459,7 @@
|
|
|
v-model="form.fIfpledge"
|
|
|
placeholder="请选择是否过磅"
|
|
|
clearable
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
>
|
|
|
<el-option
|
|
@@ -478,7 +476,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fBankcorpid"
|
|
|
laceholder="质押银行"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -489,7 +487,7 @@
|
|
|
v-model="form.fFeetunit"
|
|
|
placeholder="请选择计费单位"
|
|
|
clearable
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
>
|
|
|
<el-option
|
|
@@ -508,7 +506,7 @@
|
|
|
style="width: 100%"
|
|
|
v-model="form.remark"
|
|
|
type="textarea"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
placeholder="请输入内容"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -527,7 +525,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fContacts"
|
|
|
style="width: 250px"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
placeholder="仓库联系人"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -536,7 +534,7 @@
|
|
|
<el-form-item label="仓库电话" prop="fTel">
|
|
|
<el-input
|
|
|
v-model="form.fTel"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
style="width: 250px"
|
|
|
placeholder="请输仓库入电话"
|
|
|
/>
|
|
@@ -547,7 +545,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fVslvoy"
|
|
|
style="width: 250px"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
placeholder="船名航次"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -560,7 +558,7 @@
|
|
|
v-model="form.fEta"
|
|
|
style="width: 250px"
|
|
|
type="date"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
value-format="timestamp"
|
|
|
placeholder="到港日期"
|
|
|
>
|
|
@@ -572,7 +570,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fCustomno"
|
|
|
style="width: 250px"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
laceholder="报关单号"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -584,7 +582,7 @@
|
|
|
v-model="form.fSbu"
|
|
|
filterable
|
|
|
remote
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
:remote-method="fSbuRemoteMethod"
|
|
|
style="width: 250px"
|
|
|
placeholder="请选择经营单位"
|
|
@@ -615,7 +613,7 @@
|
|
|
<el-select
|
|
|
v-model="form.fTrademodeid"
|
|
|
placeholder="请选择贸易方式"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
clearable
|
|
|
style="width: 250px"
|
|
|
>
|
|
@@ -677,7 +675,7 @@
|
|
|
<el-input
|
|
|
v-model="form.fMarks"
|
|
|
style="width: 250px"
|
|
|
- :disabled="creditStatus"
|
|
|
+ :disabled="browseStatus"
|
|
|
placeholder="唛头"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -691,9 +689,6 @@
|
|
|
<el-button :disabled="browseStatus" @click.prevent="addRelevant()"
|
|
|
>添加
|
|
|
</el-button>
|
|
|
- <el-button :disabled="dataListSelection.length <= 0" @click.prevent="creditClick()"
|
|
|
- >入库确认
|
|
|
- </el-button>
|
|
|
</div>
|
|
|
<el-table
|
|
|
:data="dataList"
|
|
@@ -702,17 +697,11 @@
|
|
|
border
|
|
|
stripe
|
|
|
:summary-method="getSummaries"
|
|
|
- @selection-change="dataListChange"
|
|
|
+ @selection-change="Selectinventory"
|
|
|
show-summary
|
|
|
>
|
|
|
- <el-table-column
|
|
|
- type="selection"
|
|
|
- width="55">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="序号"
|
|
|
- type="index"
|
|
|
- width="80">
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column label="序号" type="index" width="80">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="fBsdate"
|
|
@@ -726,7 +715,7 @@
|
|
|
v-model="scope.row.fBsdate"
|
|
|
style="width: 150px"
|
|
|
type="date"
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ disabled
|
|
|
value-format="timestamp"
|
|
|
placeholder="入库日期"
|
|
|
>
|
|
@@ -743,9 +732,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-select
|
|
|
v-model="scope.row.fGoodsid"
|
|
|
- remote
|
|
|
filterable
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ remote
|
|
|
:remote-method="goodsRemoteMethod"
|
|
|
placeholder="请选择品名"
|
|
|
>
|
|
@@ -768,9 +757,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
v-model="scope.row.fCntrtype"
|
|
|
placeholder="箱型"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -784,10 +773,10 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
v-model="scope.row.fCntqty"
|
|
|
placeholder="箱量"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -801,10 +790,10 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
v-model="scope.row.fPlangrossweight"
|
|
|
placeholder="计划毛重"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -818,9 +807,9 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
v-model="scope.row.fPlannetweight"
|
|
|
+ :disabled="browseStatus"
|
|
|
placeholder="计划净重"
|
|
|
show-word-limit
|
|
|
/>
|
|
@@ -836,9 +825,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
v-model="scope.row.fPlanvolumn"
|
|
|
placeholder="尺码"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -852,10 +841,10 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
v-model="scope.row.fPlanqty"
|
|
|
placeholder="件数"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -869,10 +858,10 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
v-model="scope.row.fGrossweight"
|
|
|
placeholder="入库毛重"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -886,10 +875,10 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
v-model="scope.row.fNetweight"
|
|
|
placeholder="入库净重"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -903,27 +892,10 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
v-model="scope.row.fQty"
|
|
|
placeholder="入库件数"
|
|
|
- show-word-limit
|
|
|
- />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="fVolumn"
|
|
|
- header-align="center"
|
|
|
- width="180px"
|
|
|
- align="center"
|
|
|
- label="入库尺码"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
- v-model="scope.row.fVolumn"
|
|
|
- placeholder="入库尺码"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -937,10 +909,10 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ oninput="value=value.replace(/[^\d.]/g,'')"
|
|
|
v-model="scope.row.fPackagespecs"
|
|
|
placeholder="包装规格"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -957,8 +929,8 @@
|
|
|
v-model="scope.row.fWarehouselocid"
|
|
|
filterable
|
|
|
remote
|
|
|
+ :disabled="browseStatus"
|
|
|
:remote-method="kqhouseRemoteMethod"
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
placeholder="请选择库区"
|
|
|
>
|
|
|
<el-option
|
|
@@ -981,8 +953,8 @@
|
|
|
<el-input
|
|
|
v-model="scope.row.fCntrno"
|
|
|
placeholder="箱号"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -995,10 +967,10 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
+ oninput="value=value.replace(/[^\d.]/g,'')"
|
|
|
v-model="scope.row.fGoodsval"
|
|
|
placeholder="货值"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -1013,9 +985,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
oninput="value=value.replace(/[^\d.]/g,'')"
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
v-model="scope.row.fTruckno"
|
|
|
placeholder="车号"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -1029,9 +1001,9 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
v-model="scope.row.remark"
|
|
|
placeholder="备注"
|
|
|
+ :disabled="browseStatus"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -1044,7 +1016,6 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
- :disabled="scope.row.fBillstatus === '7'"
|
|
|
@click.native.prevent="deleteRow(scope.$index, dataList)"
|
|
|
size="small"
|
|
|
>移除</el-button
|
|
@@ -1245,11 +1216,11 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
v-model="scope.row.fQty"
|
|
|
placeholder="数量"
|
|
|
:disabled="browseStatus"
|
|
|
- @change="changeContractAmt(scope.row)"
|
|
|
+ @change="changeEstmateAmt(scope.row)"
|
|
|
show-word-limit
|
|
|
/>
|
|
|
</template>
|
|
@@ -1279,6 +1250,15 @@
|
|
|
width="150px"
|
|
|
label="金额"
|
|
|
>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ disabled
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
+ v-model="scope.row.fAmount"
|
|
|
+ placeholder="金额"
|
|
|
+ show-word-limit
|
|
|
+ />
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="fCurrency"
|
|
@@ -1305,7 +1285,6 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput="if(isNaN(value)) { value = null } if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.'))}"
|
|
|
v-model="scope.row.fExrate"
|
|
|
:disabled="browseStatus"
|
|
|
placeholder="汇率"
|
|
@@ -1354,7 +1333,6 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="small">审核费用</el-button>
|
|
|
<el-button
|
|
|
- :disabled="browseStatus"
|
|
|
@click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
|
|
|
size="small"
|
|
|
>移除</el-button
|
|
@@ -1498,6 +1476,15 @@
|
|
|
width="150px"
|
|
|
label="金额"
|
|
|
>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ disabled
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
+ v-model="scope.row.fAmount"
|
|
|
+ placeholder="金额"
|
|
|
+ show-word-limit
|
|
|
+ />
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="fCurrency"
|
|
@@ -1524,7 +1511,6 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
- oninput="if(isNaN(value)) { value = null } if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.'))}"
|
|
|
v-model="scope.row.fExrate"
|
|
|
:disabled="browseStatus"
|
|
|
placeholder="汇率"
|
|
@@ -1573,7 +1559,6 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="small">审核费用</el-button>
|
|
|
<el-button
|
|
|
- :disabled="browseStatus"
|
|
|
@click.native.prevent="deleteRow(scope.$index, warehouseCrList)"
|
|
|
size="small"
|
|
|
>移除</el-button
|
|
@@ -1596,8 +1581,15 @@
|
|
|
@click="showEditDialog_s"
|
|
|
>入库单
|
|
|
</el-button>
|
|
|
- <el-button v-if="!browseStatus" type="primary" @click="submitForm(2)">暂 存</el-button>
|
|
|
- <el-button v-if="!browseStatus" type="primary" @click="submitForm(6)">费用提交</el-button>
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ size="mini"
|
|
|
+ prop="打印"
|
|
|
+ @click="showEditDialog_sss"
|
|
|
+ >作业单
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary" @click="submitForm(2)">保 存</el-button>
|
|
|
+ <el-button type="primary" @click="submitForm(6)">提交审核</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
<el-dialog
|
|
@@ -1845,14 +1837,14 @@
|
|
|
style="padding-bottom: 0px; font-weight: bold; border: none"
|
|
|
class="zzss"
|
|
|
>
|
|
|
- 出库日期:2020-11-20
|
|
|
+ 出库日期:{{fBsdate}}
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
+ <tr v-for="(item,index) in Printinglist" :key="index">
|
|
|
<td width="200">车号</td>
|
|
|
- <td width="200">苏HFN751</td>
|
|
|
+ <td width="200">{{item.fTruckno}}</td>
|
|
|
<td width="200">货物品名</td>
|
|
|
- <td width="200" colspan="4" class="zzss">某某商品名</td>
|
|
|
+ <td width="200" colspan="4" class="zzss">{{item.fGoodsids}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td width="1400" colspan="6"> </td>
|
|
@@ -1871,16 +1863,16 @@
|
|
|
<td>司机签字:</td>
|
|
|
<td></td>
|
|
|
<td>电话</td>
|
|
|
- <td>15896154516</td>
|
|
|
+ <td>{{form.fTel}}</td>
|
|
|
<td colspan="2" rowspan="2">
|
|
|
确认货物数量无误,包装于货物完好!<br />出库盖好篷布,如有违背责任自负<br />装卸工是否收小费
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>制表:</td>
|
|
|
- <td>张三</td>
|
|
|
+ <td>{{form.createBy}}</td>
|
|
|
<td>机械/人工:</td>
|
|
|
- <td></td>
|
|
|
+ <td>{{form.fContacts}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan="6" class="zzss"> </td>
|
|
@@ -1903,11 +1895,10 @@
|
|
|
<script>
|
|
|
import print from "print-js";
|
|
|
import {
|
|
|
- addWhgenleg,
|
|
|
+ listWarehousebills,
|
|
|
getWarehousebills,
|
|
|
delWarehousebills,
|
|
|
addWarehousebills,
|
|
|
- listWarehousebills,
|
|
|
updateWarehousebills,
|
|
|
exportWarehousebills,
|
|
|
} from "@/api/warehouseBusiness/warehouseInStock";
|
|
@@ -1934,15 +1925,20 @@ export default {
|
|
|
// 修改查看状态
|
|
|
browseStatus: false,
|
|
|
detailsHidden: false,
|
|
|
- fPlannetweight: null,
|
|
|
- fPlanvolumn: null,
|
|
|
- fPlanqty: null,
|
|
|
- fFeeUnitid: null,
|
|
|
- fFeeUnitids: null,
|
|
|
- fGrossweight: null,
|
|
|
- fCntqty: null,
|
|
|
- fNetweight: null,
|
|
|
- fQty: null,
|
|
|
+ fTruckno: '',
|
|
|
+ fBsdate: '',
|
|
|
+ fCntrtype: '',
|
|
|
+ fGoodsids: '',
|
|
|
+ fPlangrossweight: "",
|
|
|
+ fPlannetweight: "",
|
|
|
+ fPlanvolumn: "",
|
|
|
+ fPlanqty: "",
|
|
|
+ fFeeUnitid: "",
|
|
|
+ fFeeUnitids: "",
|
|
|
+ fGrossweight: "",
|
|
|
+ fCntqty: "",
|
|
|
+ fNetweight: "",
|
|
|
+ fQty: "",
|
|
|
fPlangrossweight: 0,
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
@@ -1955,7 +1951,6 @@ export default {
|
|
|
deptId: null,
|
|
|
},
|
|
|
queryForm: {},
|
|
|
- creditStatus: false,
|
|
|
// 添加用户对话框
|
|
|
editDialogVisible_s: false,
|
|
|
editDialogVisible_ss: false,
|
|
@@ -1984,8 +1979,6 @@ export default {
|
|
|
// 货权方(客户数据)
|
|
|
// 客户名称
|
|
|
KHblnoOptions: [],
|
|
|
- // 库存明细入账数组
|
|
|
- dataListSelection: [],
|
|
|
fSbuOptions: [],
|
|
|
// 操作员
|
|
|
userOptions: [],
|
|
@@ -2187,7 +2180,6 @@ export default {
|
|
|
fPlanqty: 0,
|
|
|
fGrossweight: 0,
|
|
|
fQty: 0,
|
|
|
- fBillstatus: null,
|
|
|
fPackagespecs: null,
|
|
|
fWarehouselocid: null,
|
|
|
fBoxno: null,
|
|
@@ -2213,12 +2205,12 @@ export default {
|
|
|
fCorpid: null,
|
|
|
fFeeid: null,
|
|
|
fFeeUnitid: null,
|
|
|
- fQty: 0,
|
|
|
- fUnitprice: 0,
|
|
|
- fAmount: 0,
|
|
|
- fCurrency: 0,
|
|
|
- fCxrate: 0,
|
|
|
- fRate: 0,
|
|
|
+ fQty: null,
|
|
|
+ fUnitprice: null,
|
|
|
+ fAmount: null,
|
|
|
+ fCurrency: null,
|
|
|
+ fCxrate: null,
|
|
|
+ fRate: null,
|
|
|
remarks: null,
|
|
|
});
|
|
|
},
|
|
@@ -2227,12 +2219,12 @@ export default {
|
|
|
fCorpid: null,
|
|
|
fFeeid: null,
|
|
|
fFeeUnitid: null,
|
|
|
- fQty: 0,
|
|
|
- fUnitprice: 0,
|
|
|
- fAmount: 0,
|
|
|
- fCurrency: 0,
|
|
|
- fCxrate: 0,
|
|
|
- fRate: 0,
|
|
|
+ fQty: null,
|
|
|
+ fUnitprice: null,
|
|
|
+ fAmount: null,
|
|
|
+ fCurrency: null,
|
|
|
+ fCxrate: null,
|
|
|
+ fRate: null,
|
|
|
remarks: null,
|
|
|
});
|
|
|
},
|
|
@@ -2256,6 +2248,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
listWarehousebills(this.queryParams).then((response) => {
|
|
|
this.warehousebillsList = response.rows;
|
|
|
+ console.log(response.rows);
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
@@ -2402,6 +2395,7 @@ export default {
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row, status) {
|
|
|
+ console.log(status);
|
|
|
this.browseStatus = status;
|
|
|
this.reset();
|
|
|
const fId = row.fId || this.ids;
|
|
@@ -2413,31 +2407,31 @@ export default {
|
|
|
this.fMblnoOptions = response.data.corps;
|
|
|
this.KHblnoOptions = response.data.corps;
|
|
|
this.fSbuOptions = response.data.corps;
|
|
|
- }
|
|
|
- if(response.data.feesList){
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- }
|
|
|
- if(response.data.warehouse){
|
|
|
- this.warehouseOptions = response.data.warehouse;
|
|
|
- }
|
|
|
- if(response.data.warehouseBillsItem) {
|
|
|
- this.dataList = response.data.warehouseBillsItem;
|
|
|
- for (let list in this.dataList) {
|
|
|
- if (!this.creditStatus && this.dataList[list].fBillstatus === '7') {
|
|
|
- this.creditStatus = true
|
|
|
- }
|
|
|
- this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate));
|
|
|
- }
|
|
|
- }
|
|
|
- if(response.data.enclosures) {
|
|
|
- this.relevantAttachments = response.data.enclosures;
|
|
|
- }
|
|
|
+ }
|
|
|
+ if (response.data.feesList) {
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ }
|
|
|
+ if (response.data.warehouse) {
|
|
|
+ this.warehouseOptions = response.data.warehouse;
|
|
|
+ }
|
|
|
+ if (response.data.warehouseBillsItem) {
|
|
|
+ this.dataList = response.data.warehouseBillsItem;
|
|
|
+ }
|
|
|
+ if (response.data.enclosures) {
|
|
|
+ this.relevantAttachments = response.data.enclosures;
|
|
|
+ }
|
|
|
this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
|
|
|
this.$set(this.form, "fEta", Date.parse(this.form.fEta));
|
|
|
this.$set(this.form, "createTime", Date.parse(this.form.createTime));
|
|
|
this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
|
|
|
|
|
|
-
|
|
|
+ for (let list in this.dataList) {
|
|
|
+ this.$set(
|
|
|
+ this.dataList[list],
|
|
|
+ "fBsdate",
|
|
|
+ Date.parse(this.dataList[list].fBsdate)
|
|
|
+ );
|
|
|
+ }
|
|
|
this.goodsOptions = response.data.goodsList;
|
|
|
this.kqhouseOptions = response.data.warehouseAreas;
|
|
|
this.warehouseDrList = response.data.warehousebillsfeesDr;
|
|
@@ -2462,13 +2456,9 @@ export default {
|
|
|
this.title = "修改仓入库)";
|
|
|
});
|
|
|
},
|
|
|
- // 库存明细多选框结果
|
|
|
- dataListChange (row) {
|
|
|
- console.log(JSON.stringify(row))
|
|
|
- this.dataListSelection = row
|
|
|
- },
|
|
|
// 合计
|
|
|
getSummaries(param) {
|
|
|
+ console.log(param);
|
|
|
const { columns, data } = param;
|
|
|
const sums = [];
|
|
|
var values = [];
|
|
@@ -2586,7 +2576,7 @@ export default {
|
|
|
if (row.fQty) {
|
|
|
fQty = row.fQty;
|
|
|
}
|
|
|
- this.$set(row, "fAmount", parseFloat(Number(fUnitprice) * Number(fQty)).toFixed(2))
|
|
|
+ this.$set(row, "fAmount", Number(fUnitprice) * Number(fQty)).toFixed(2);
|
|
|
},
|
|
|
changefBsdate(row) {
|
|
|
if (this.dataList.length > 0) {
|
|
@@ -2597,6 +2587,8 @@ export default {
|
|
|
},
|
|
|
// 变更计价单位
|
|
|
changeFeeUnit(row) {
|
|
|
+ console.log(this.fCntqty);
|
|
|
+ console.log(row);
|
|
|
if (!row.fFeeUnitid) {
|
|
|
return false;
|
|
|
}
|
|
@@ -2606,46 +2598,32 @@ export default {
|
|
|
this.$set(row, "fQty", this.fGrossweight);
|
|
|
}
|
|
|
if (row.fUnitprice) {
|
|
|
- this.$set(row, "fAmount", parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2))
|
|
|
+ this.$set(
|
|
|
+ row,
|
|
|
+ "fAmount",
|
|
|
+ parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
|
|
|
+ );
|
|
|
}
|
|
|
},
|
|
|
- // 入账
|
|
|
- creditClick () {
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- let formData = new window.FormData();
|
|
|
- formData.append("warehouseBills", JSON.stringify(this.form))
|
|
|
- formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection))
|
|
|
- formData.append("whgenleg", JSON.stringify(this.relevantAttachments))
|
|
|
- addWhgenleg(formData).then((response) => {
|
|
|
- this.creditStatus = true
|
|
|
- this.msgSuccess("入账成功");
|
|
|
- for (let li in this.dataListSelection) {
|
|
|
- for (let i in this.dataList) {
|
|
|
- let fQty = this.dataList[i].fQty === this.dataListSelection[li].fQty;
|
|
|
- let fBsdate = this.dataList[i].fBsdate === this.dataListSelection[li].fBsdate;
|
|
|
- let fGoodsid = this.dataList[i].fGoodsid === this.dataListSelection[li].fGoodsid;
|
|
|
- let fcntrtype = this.dataList[i].fcntrtype === this.dataListSelection[li].fcntrtype;
|
|
|
- let fNetweight = this.dataList[i].fNetweight === this.dataListSelection[li].fNetweight;
|
|
|
- let fGrossweight = this.dataList[i].fGrossweight === this.dataListSelection[li].fGrossweight;
|
|
|
- if (fBsdate && fGoodsid && fcntrtype && fGrossweight && fNetweight && fQty) {
|
|
|
- this.$set(this.dataList[i], 'fBillstatus', '7')
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+
|
|
|
+ changefBsdate(row) {
|
|
|
+ if (this.dataList.length > 0) {
|
|
|
+ for (var i = 0; i < this.dataList.length; i++) {
|
|
|
+ this.$set(this.dataList[i], "fBsdate", row);
|
|
|
}
|
|
|
- })
|
|
|
- console.log('有东西')
|
|
|
+ }
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm(status) {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (status === 2) {
|
|
|
+ console.log("@@");
|
|
|
+ console.log(this.form);
|
|
|
+ console.log(this.dataList);
|
|
|
+ console.log(this.warehouseCrList);
|
|
|
+ console.log(this.warehouseDrList);
|
|
|
if (valid) {
|
|
|
- if (!this.form.fBillstatus) {
|
|
|
- this.form.fBillstatus = status;
|
|
|
-
|
|
|
+ this.form.fBillstatus = status;
|
|
|
this.form.fNetweight = this.fNetweight;
|
|
|
this.form.fPlangrossweight = this.fPlangrossweight;
|
|
|
this.form.fPlannetweight = this.fPlannetweight;
|
|
@@ -2783,47 +2761,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- if (valid) {
|
|
|
- this.form.fBillstatus = status;
|
|
|
- this.form.fNetweight = this.fNetweight;
|
|
|
- this.form.fPlangrossweight = this.fPlangrossweight;
|
|
|
- this.form.fPlannetweight = this.fPlannetweight;
|
|
|
- this.form.fPlanvolumn = this.fPlanvolumn;
|
|
|
- this.form.fPlanqty = this.fPlanqty;
|
|
|
- this.form.fGrossweight = this.fGrossweight;
|
|
|
- this.form.fQty = this.fQty;
|
|
|
- let formData = new window.FormData();
|
|
|
- // 附件数据
|
|
|
- formData.append("tWarehouseBills", JSON.stringify(this.form));
|
|
|
- // 库存明细
|
|
|
- formData.append(
|
|
|
- "tWarehousebillsitems",
|
|
|
- JSON.stringify(this.dataList)
|
|
|
- );
|
|
|
- // 附件数据
|
|
|
- formData.append(
|
|
|
- "tWhgenleg",
|
|
|
- JSON.stringify(this.relevantAttachments)
|
|
|
- );
|
|
|
- // 费用明细付款
|
|
|
- formData.append(
|
|
|
- "tWarehousebillsfeesCr",
|
|
|
- JSON.stringify(this.warehouseCrList)
|
|
|
- );
|
|
|
- // 收款
|
|
|
- formData.append(
|
|
|
- "tWarehousebillsfeesDr",
|
|
|
- JSON.stringify(this.warehouseDrList)
|
|
|
- );
|
|
|
- addWarehousebills(formData).then((response) => {
|
|
|
- this.msgSuccess("提交成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
});
|
|
|
},
|
|
|
/** 删除按钮操作 */
|