|
@@ -443,6 +443,7 @@
|
|
|
<el-form-item label="业务时间" prop="fBstime">
|
|
|
<el-time-picker
|
|
|
style="width: 80%"
|
|
|
+ :disabled="browseStatus || formBrowseStatus"
|
|
|
v-model="form.fBstime"
|
|
|
:picker-options="{
|
|
|
selectableRange: '00:00:01 - 23:59:59'
|
|
@@ -854,7 +855,7 @@
|
|
|
</div>
|
|
|
<div style="display: flex">
|
|
|
<el-button type="info" :disabled="printinglist.length <= 0 || browseStatus" prop="打印" @click="printJobSheet">作业单</el-button>
|
|
|
- <el-button :disabled="printinglist.length <= 0 || browseStatus " @click="discharge">装货</el-button>
|
|
|
+ <el-button :disabled="printinglist.length <= 0 || browseStatus " @click="discharge">叫车进场</el-button>
|
|
|
<el-button
|
|
|
:disabled="dataListSelection.length <= 0 || browseStatus"
|
|
|
@click.prevent="creditClick"
|
|
@@ -895,15 +896,29 @@
|
|
|
@selection-change="selectinventory"
|
|
|
show-summary
|
|
|
>
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="序号" type="index" width="80">
|
|
|
+ <el-table-column type="selection" width="55" fixed align="center" />
|
|
|
+ <el-table-column label="序号" type="index" fixed width="80"/>
|
|
|
+ <el-table-column
|
|
|
+ prop="fBillstatus"
|
|
|
+ header-align="center"
|
|
|
+ width="150px"
|
|
|
+ fixed
|
|
|
+ align="center"
|
|
|
+ label="状态"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.fBillstatus === 10">计划</span>
|
|
|
+ <span v-if="scope.row.fBillstatus === 20">待入库</span>
|
|
|
+ <span v-if="scope.row.fBillstatus === 30">入库中</span>
|
|
|
+ <span v-if="scope.row.fBillstatus === 40">已入库</span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
-
|
|
|
<el-table-column
|
|
|
prop="fBsdate"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
width="150px"
|
|
|
+ fixed
|
|
|
label="入库日期"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
@@ -938,7 +953,7 @@
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
width="140px"
|
|
|
- label="品名"
|
|
|
+ label="*品名"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -1041,7 +1056,7 @@
|
|
|
oninput='this.value=this.value.replace(/[^\-?\d]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "")'
|
|
|
@change="qtyChange(scope.row)"
|
|
|
v-model="scope.row.fQty"
|
|
|
- :disabled="browseStatus || scope.row.fBillstatus > 20"
|
|
|
+ :disabled="browseStatus || scope.row.fBillstatus === 40"
|
|
|
placeholder="调拨件数"
|
|
|
show-word-limit
|
|
|
/>
|
|
@@ -1057,7 +1072,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
- :disabled="browseStatus || scope.row.fBillstatus > 20"
|
|
|
+ :disabled="browseStatus || scope.row.fBillstatus === 40"
|
|
|
v-model="scope.row.fGrossweight"
|
|
|
@change="changeStock(scope.row)"
|
|
|
placeholder="调拨毛重"
|
|
@@ -1290,20 +1305,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="fBillstatus"
|
|
|
- header-align="center"
|
|
|
- width="150px"
|
|
|
- align="center"
|
|
|
- label="状态"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.fBillstatus === 10">计划</span>
|
|
|
- <span v-if="scope.row.fBillstatus === 20">待入库</span>
|
|
|
- <span v-if="scope.row.fBillstatus === 30">入库中</span>
|
|
|
- <span v-if="scope.row.fBillstatus === 40">已入库</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+
|
|
|
<el-table-column
|
|
|
header-align="center"
|
|
|
align="center"
|
|
@@ -2293,7 +2295,7 @@
|
|
|
<tr>
|
|
|
<td
|
|
|
width="900"
|
|
|
- colspan="4"
|
|
|
+ colspan="2"
|
|
|
class="zzss"
|
|
|
style="font-size: 28px; font-weight: bold"
|
|
|
>
|
|
@@ -2306,6 +2308,19 @@
|
|
|
>
|
|
|
调拨日期:{{ form.fBsdates }}
|
|
|
</td>
|
|
|
+ <td v-if="!fBstime"
|
|
|
+ colspan="2"
|
|
|
+ style="padding-bottom: 0px; font-weight: bold;"
|
|
|
+ >调拨时间:</td>
|
|
|
+ <td
|
|
|
+ v-else
|
|
|
+ width="500"
|
|
|
+ colspan="2"
|
|
|
+ style="padding-bottom: 0px; font-weight: bold;"
|
|
|
+ class="zzss"
|
|
|
+ >
|
|
|
+ 调拨时间:{{ fBstime.slice(11,19) }}
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
<!-- <tr v-for="(item, index) in printinglist" :key="index">-->
|
|
|
<!-- <td width="200">车号</td>-->
|
|
@@ -2384,6 +2399,235 @@
|
|
|
</el-dialog>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
+ title="调拨收货单打印"
|
|
|
+ style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
|
|
|
+ :visible.sync="editDialogVisible_ss"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ width="70%"
|
|
|
+ :modal="false"
|
|
|
+ >
|
|
|
+ <table
|
|
|
+ id="print_area3"
|
|
|
+ class="biaoge zzss"
|
|
|
+ border="1"
|
|
|
+ style="border-collapse: collapse; border: none;"
|
|
|
+ >
|
|
|
+ <tr>
|
|
|
+ <td
|
|
|
+ width="1400"
|
|
|
+ colspan="6"
|
|
|
+ class="zzss"
|
|
|
+ style="font-size: 26px; font-weight: bold; border: none"
|
|
|
+ >
|
|
|
+ 大木国际物流(青岛)有限公司收货单
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- <div v-for="{{}}" :key="index"> -->
|
|
|
+ <tr>
|
|
|
+ <td width="400">车号:</td>
|
|
|
+ <td width="400" v-if="printinglist.length === 0"></td>
|
|
|
+ <td width="400" v-else>{{ printinglist[0].fTruckno }}</td>
|
|
|
+ <td
|
|
|
+ width="500"
|
|
|
+ colspan="4"
|
|
|
+ style="padding-bottom: 0px; font-weight: bold;"
|
|
|
+ class="zzss"
|
|
|
+ v-if="printinglist.length === 0 || !fBstime"
|
|
|
+ >
|
|
|
+ 日期:
|
|
|
+ </td>
|
|
|
+ <td
|
|
|
+
|
|
|
+ width="500"
|
|
|
+ colspan="4"
|
|
|
+ style="padding-bottom: 0px; font-weight: bold;"
|
|
|
+ class="zzss"
|
|
|
+ v-else
|
|
|
+ >
|
|
|
+ 日期:{{ printinglist[0].fOriginalbilldate }} {{ fBstime.slice(11,19) }}
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <!-- <td
|
|
|
+ width="500"
|
|
|
+ colspan="2"
|
|
|
+ style="padding-bottom: 0px; font-weight: bold; border: none"
|
|
|
+ class="zzss"
|
|
|
+ >
|
|
|
+ </td> -->
|
|
|
+ </tr>
|
|
|
+ <tr v-for="(item, index) in printinglist" :key="index">
|
|
|
+ <td width="250">货物品名:</td>
|
|
|
+ <td width="200" colspan="">{{ item.fGoodsids }}</td>
|
|
|
+ <!-- <td width="200" colspan="2">件数: 161件</td> -->
|
|
|
+ <!-- <td width="200"></td> -->
|
|
|
+ <td width="200" colspan="4" class="zzss">
|
|
|
+ 件数: {{ item.fQty }}件
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- <tr>
|
|
|
+ <td width="1400" colspan="6"> </td>
|
|
|
+ </tr> -->
|
|
|
+ <tr>
|
|
|
+ <td>备注:</td>
|
|
|
+ <td colspan="5">{{ form.remark }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>司机签字:</td>
|
|
|
+ <td></td>
|
|
|
+ <td colspan="2">司机电话:</td>
|
|
|
+ <td colspan="2" v-if="dataList.length !== 0">{{ dataList[0].fDriverTel }}</td>
|
|
|
+ <td colspan="2" v-else>1</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>制单人:</td>
|
|
|
+ <td>{{ form.createBy }}</td>
|
|
|
+ <td colspan="2">收货人:</td>
|
|
|
+ <td colspan="2">{{ form.fContacts }}</td>
|
|
|
+ </tr>
|
|
|
+ <!-- <tr>
|
|
|
+ <td colspan="6" class="zzss"> </td>
|
|
|
+ </tr> -->
|
|
|
+ <tr>
|
|
|
+ <td width="280" class="zzss"></td>
|
|
|
+ <td width="280" class="zzss"></td>
|
|
|
+ <td width="280" class="zzss"></td>
|
|
|
+ <td width="280" class="zzss"></td>
|
|
|
+ <td width="290" class="zzss">地址:{{ fAddr }}</td>
|
|
|
+ <td width="290" class="zzss">电话:{{ form.fTel }}</td>
|
|
|
+ </tr>
|
|
|
+ <!-- </div> -->
|
|
|
+ </table>
|
|
|
+ <el-button @click="printSomething2">打印</el-button>
|
|
|
+ <el-button @click="editDialogVisible_ss = false">取消 </el-button>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="调拨进仓单打印"
|
|
|
+ :modal="false"
|
|
|
+ style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
|
|
|
+ :visible.sync="editDialogVisible_s"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ @close="closeDialog"
|
|
|
+ width="70%"
|
|
|
+ >
|
|
|
+ <table
|
|
|
+ id="print_area2"
|
|
|
+ class="biaoge zzss"
|
|
|
+ border="1"
|
|
|
+ style="border-collapse: collapse; border: none"
|
|
|
+ >
|
|
|
+ <tr>
|
|
|
+ <td
|
|
|
+ width="100"
|
|
|
+ colspan="7"
|
|
|
+ class="zzss"
|
|
|
+ style="font-size: 28px; font-weight: bold; border: none"
|
|
|
+ >
|
|
|
+ 青岛大木进仓单
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td
|
|
|
+ width="100"
|
|
|
+ colspan="7"
|
|
|
+ class="zzss"
|
|
|
+ style="font-size: 28px; font-weight: bold; border: none"
|
|
|
+ >
|
|
|
+
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="450" colspan="2" class="zzss">
|
|
|
+ 货权方:{{ form.fCorpidName }}
|
|
|
+ </td>
|
|
|
+ <td width="450" colspan="2" class="zzss">
|
|
|
+ 仓库:{{ form.fWarehouseid }}
|
|
|
+ </td>
|
|
|
+ <td width="450" colspan="3" class="zzss">地址:{{ fAddr }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="200" colspan="2" class="zzss">保管方:大木有限公司</td>
|
|
|
+ <td width="200" colspan="2" class="zzss">
|
|
|
+ 联系人:{{ form.fContacts }}
|
|
|
+ </td>
|
|
|
+ <td width="200" colspan="3" class="zzss">电话:{{ form.fTel }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="100" border="1">提单号</td>
|
|
|
+ <td width="100">品名</td>
|
|
|
+ <td width="100">箱型</td>
|
|
|
+ <td width="100">品牌</td>
|
|
|
+ <td width="100">件数</td>
|
|
|
+ <td width="100">重量</td>
|
|
|
+ <td width="100">包装规格</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="100">{{ form.fMblno }}</td>
|
|
|
+ <td width="100">{{ form.fProductName }}</td>
|
|
|
+ <td width="100">{{ dataList.fCntrtype }}</td>
|
|
|
+ <td width="100">{{ form.fMarks }}</td>
|
|
|
+ <td width="100">包</td>
|
|
|
+ <td width="100">吨</td>
|
|
|
+ <td width="100">{{ fPackagespecs }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="100">序号</td>
|
|
|
+ <td width="100">入货日期</td>
|
|
|
+ <td width="100">箱量(20GP)</td>
|
|
|
+ <td width="100">重量</td>
|
|
|
+ <td width="100">件数</td>
|
|
|
+ <td width="100">入库重量</td>
|
|
|
+ <td width="100">入库件数</td>
|
|
|
+ </tr>
|
|
|
+ <tr v-for="(item, indexx) in printinglist" :key="indexx">
|
|
|
+ <td width="100">{{ indexx + 1 }}</td>
|
|
|
+ <td width="100">{{ item.fBsdate }}</td>
|
|
|
+ <td width="100">{{ item.fCntqty }}</td>
|
|
|
+ <td width="100">{{ (item.fGrossweight / 1000).toFixed(2) }}</td>
|
|
|
+ <td width="100">{{ item.fPlanqty }}</td>
|
|
|
+ <td width="100">{{ (item.fNetweight / 1000).toFixed(2) }}</td>
|
|
|
+ <td width="100">{{ item.fQty }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="100" colspan="2">合计:</td>
|
|
|
+ <td width="100">{{ fCntqty }}</td>
|
|
|
+ <td width="100">{{ form.sumFGrossweight }}</td>
|
|
|
+ <td width="100">{{ fPlanqty }}</td>
|
|
|
+ <td width="100">{{ form.sumFNetweight}}</td>
|
|
|
+ <td width="100">{{ fQty }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="100">备注:</td>
|
|
|
+ <td width="100" colspan="6"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="100" colspan="7" class="zzss">
|
|
|
+ 本进仓单经仓管员签字并经保管方盖章后即专项作为货物所有人的货权证明,本单据不得转让。
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr style="border: none">
|
|
|
+ <td width="100" colspan="2" class="zzss" style="border: none">
|
|
|
+ 开单员:
|
|
|
+ </td>
|
|
|
+ <td width="100" colspan="3" class="zzss" style="border: none"></td>
|
|
|
+ <td width="100" colspan="2" class="zzss" style="border: none">
|
|
|
+ 仓管员:
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr style="border: none">
|
|
|
+ <td width="100" colspan="2" class="zzss" style="border: none">
|
|
|
+ 开单时间:
|
|
|
+ </td>
|
|
|
+ <td width="100" colspan="3" class="zzss" style="border: none"></td>
|
|
|
+ <td width="100" colspan="2" class="zzss" style="border: none">
|
|
|
+ (盖章)
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <el-button @click="printSomething1">打印</el-button>
|
|
|
+ <el-button @click="editDialogVisible_s = false">取消 </el-button>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
title="选择库位"
|
|
|
:data="treeselectList"
|
|
|
:visible.sync="choiceWarehouse"
|
|
@@ -2453,6 +2697,10 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ fBstime:'',
|
|
|
+ fPackagespecs: "",
|
|
|
+ editDialogVisible_s: false,
|
|
|
+ editDialogVisible_ss: false,
|
|
|
fCompanyOptIons:[],
|
|
|
fleetOptions:[],
|
|
|
activeIndex: '1',
|
|
@@ -2669,7 +2917,7 @@ export default {
|
|
|
fBsdates: null,
|
|
|
fTrademodeid: null,
|
|
|
fWarehouseid: null,
|
|
|
- fBstime:new Date()
|
|
|
+ fBstime:''
|
|
|
},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
@@ -2752,10 +3000,97 @@ export default {
|
|
|
activated(){
|
|
|
this.Jump()
|
|
|
},
|
|
|
- // watch:{
|
|
|
- // 'form.fWarehouseid' : 'warehouseMethod'
|
|
|
- // },
|
|
|
methods: {
|
|
|
+ closeDialog() {
|
|
|
+ for (let aorp in this.Printinglist) {
|
|
|
+ this.$set(
|
|
|
+ this.Printinglist[aorp],
|
|
|
+ "fBsdate",
|
|
|
+ Date.parse(this.Printinglist[aorp].fBsdate)
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //入库单打印
|
|
|
+ showEditDialog_s() {
|
|
|
+ if (this.printinglist.length > 0) {
|
|
|
+ this.editDialogVisible_s = true;
|
|
|
+ let sumFNetweight = 0
|
|
|
+ let sumFGrossweight = 0
|
|
|
+ for (let aorp in this.printinglist) {
|
|
|
+ sumFNetweight = Number(sumFNetweight) + Number(this.printinglist[aorp].fNetweight)
|
|
|
+ sumFGrossweight = Number(sumFGrossweight) + Number(this.printinglist[aorp].fGrossweight)
|
|
|
+ var date = new Date(this.printinglist[aorp].fBsdate);
|
|
|
+ var Y = date.getFullYear() + "-";
|
|
|
+ var M =
|
|
|
+ (date.getMonth() + 1 < 10
|
|
|
+ ? "0" + (date.getMonth() + 1)
|
|
|
+ : date.getMonth() + 1) + "-";
|
|
|
+ var D =
|
|
|
+ (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
|
|
|
+ this.$set(this.printinglist[aorp], "fBsdate", Y + M + D);
|
|
|
+ }
|
|
|
+ this.$set(this.form , 'sumFNetweight', parseFloat(Number(sumFNetweight) / 1000).toFixed(2))
|
|
|
+ this.$set(this.form , 'sumFGrossweight', parseFloat(Number(sumFGrossweight) / 1000).toFixed(2))
|
|
|
+ for (let corp in this.fMblnoOptions) {
|
|
|
+ if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
|
|
|
+ this.$set(this.form, "fCorpidName", this.fMblnoOptions[corp].fName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (let sorp in this.warehouseOptions) {
|
|
|
+ if (this.form.fWarehouseid === this.warehouseOptions[sorp].fId) {
|
|
|
+ this.$set(this.form, "fWarehouseid", this.warehouseOptions[sorp].fName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error("请选择需要打印的明细!");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ printSomething1() {
|
|
|
+ // 此处的style即为打印时的样式
|
|
|
+ const style =
|
|
|
+ "@media print { .print-div{ border:none;padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center;border:1px solid #000}}";
|
|
|
+ print({
|
|
|
+ printable: "print_area2",
|
|
|
+ type: "html",
|
|
|
+ style: style, // 亦可使用引入的外部css;
|
|
|
+ scanStyles: false,
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //收货单打印
|
|
|
+ showEditDialog_ss() {
|
|
|
+ if (this.printinglist.length > 0) {
|
|
|
+ for (let warehouseCr in this.printinglist) {
|
|
|
+ if (!this.printinglist[warehouseCr].fWarehouseInformation) {
|
|
|
+ this.$message.error('请选择调入库位')
|
|
|
+ return false
|
|
|
+ } else if (!this.printinglist[warehouseCr].fDriverName || this.printinglist[warehouseCr].fDriverName !== this.printinglist[0].fDriverName) {
|
|
|
+ this.$message.error('请选择相同司机名')
|
|
|
+ return false
|
|
|
+ } else if (!this.printinglist[warehouseCr].fDriverTel || this.printinglist[warehouseCr].fDriverTel !== this.printinglist[0].fDriverTel) {
|
|
|
+ this.$message.error('请选择相同司机电话')
|
|
|
+ return false
|
|
|
+ } else if (!this.printinglist[warehouseCr].fTruckno || this.printinglist[warehouseCr].fTruckno !== this.printinglist[0].fTruckno) {
|
|
|
+ this.$message.error('请选择相同车号')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.editDialogVisible_ss = true
|
|
|
+ } else {
|
|
|
+ this.$message.error('请选择需要打印的明细!')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ printSomething2() {
|
|
|
+ // 此处的style即为打印时的样式
|
|
|
+ const style =
|
|
|
+ "@media print { .print-div{ border:none;padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center;border:1px solid #000}}";
|
|
|
+ print({
|
|
|
+ printable: "print_area3",
|
|
|
+ type: "html",
|
|
|
+ style: style, // 亦可使用引入的外部css;
|
|
|
+ scanStyles: false,
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
//仓库电话、仓库联系人带入
|
|
|
warwhouseTel(){
|
|
|
for(let item in this.warehouseOptions){
|
|
@@ -3319,6 +3654,10 @@ export default {
|
|
|
},
|
|
|
// 作业单打印
|
|
|
printJobSheet() {
|
|
|
+ if (this.printinglist.length <= 0) {
|
|
|
+ this.$message.error("请维护出库明细!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
let fTruckno = this.printinglist[0].fTruckno
|
|
|
let fDriverName = this.printinglist[0].fDriverName
|
|
|
for (let warehouseCr in this.printinglist) {
|
|
@@ -3376,31 +3715,9 @@ export default {
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
this.openPrintJobSheet = true
|
|
|
+ this.fBstime = this.form.fBstime
|
|
|
}, 200);
|
|
|
},
|
|
|
- showEditDialog_ss() {
|
|
|
- if (this.printinglist.length > 0) {
|
|
|
- for (let warehouseCr in this.printinglist) {
|
|
|
- if (!this.printinglist[warehouseCr].fWarehouseInformation) {
|
|
|
- this.$message.error('请选择调入库位')
|
|
|
- return false
|
|
|
- } else if (!this.printinglist[warehouseCr].fDriverName || this.printinglist[warehouseCr].fDriverName !== this.printinglist[0].fDriverName) {
|
|
|
- this.$message.error('请选择相同司机名')
|
|
|
- return false
|
|
|
- } else if (!this.printinglist[warehouseCr].fDriverTel || this.printinglist[warehouseCr].fDriverTel !== this.printinglist[0].fDriverTel) {
|
|
|
- this.$message.error('请选择相同司机电话')
|
|
|
- return false
|
|
|
- } else if (!this.printinglist[warehouseCr].fTruckno || this.printinglist[warehouseCr].fTruckno !== this.printinglist[0].fTruckno) {
|
|
|
- this.$message.error('请选择相同车号')
|
|
|
- return false
|
|
|
- }
|
|
|
- }
|
|
|
- this.openPrintJobSheet = true
|
|
|
- this.addList()
|
|
|
- } else {
|
|
|
- this.$message.error('请选择需要打印的明细!')
|
|
|
- }
|
|
|
- },
|
|
|
// 收款信息
|
|
|
addCollection() {
|
|
|
if(this.form.fBusinessType == null){
|
|
@@ -4135,6 +4452,43 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //保存
|
|
|
+ this.$refs['form'].validate((valid) => {
|
|
|
+ // if (this.dataList.length === 0) {
|
|
|
+ // this.$message.error('请添加库存明细!')
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ for (let list in this.dataList) {
|
|
|
+ this.changeStock(this.dataList[list])
|
|
|
+ }
|
|
|
+ if (valid) {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.form.fBillstatus = 2
|
|
|
+ let formData = new window.FormData()
|
|
|
+ // this.dataList.fTransferWarehouselocid = this.treeselectList.fWarehouselocid
|
|
|
+ formData.append("warehouseBills", JSON.stringify(this.form));
|
|
|
+ formData.append("warehousebillsitems", JSON.stringify(this.dataList));
|
|
|
+ formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
|
|
|
+ formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
|
|
|
+ formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
|
|
|
+ addStockTransfer(formData).then((response) => {
|
|
|
+ this.form = response.data.warehouseBills
|
|
|
+ this.$set(this.form, 'fEta', Date.parse(this.form.fEta))
|
|
|
+ this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '')
|
|
|
+ this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
|
|
|
+ this.$set(this.form, 'fFeetunit', Number(this.form.fFeetunit))
|
|
|
+ this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
|
|
|
+ this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
|
|
|
+ this.$set(this.form, 'fChargedate', Date.parse(this.form.fChargedate))
|
|
|
+ this.dataList = response.data.warehousebillsitems
|
|
|
+ for (let li in this.dataList) {
|
|
|
+ this.$set(this.dataList[li], 'fBsdate', Date.parse(this.dataList[li].fBsdate))
|
|
|
+ this.$set(this.dataList[li], 'fBusinessType', this.dataList[li].fBusinessType + '')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }, 200);
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
});
|
|
@@ -4700,4 +5054,9 @@ export default {
|
|
|
.el-icon-s-home,.el-icon-s-order,.el-icon-circle-plus,.el-icon-remove{
|
|
|
padding-right: 5px;
|
|
|
}
|
|
|
+.el-table {
|
|
|
+ .el-table__body-wrapper {
|
|
|
+ z-index: 2;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|