|
|
@@ -305,37 +305,37 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="计划净重(kg)" prop="fPlannetweight">
|
|
|
+ <el-form-item label="计划毛重(kg)" prop="fPlangrossweight">
|
|
|
<el-input
|
|
|
- v-model="form.fPlannetweight"
|
|
|
- style="width: 80%"
|
|
|
- maxlength="16"
|
|
|
- v-input-limit="2"
|
|
|
- placeholder="计划净重"
|
|
|
- @input="changePlannetWeight"
|
|
|
- :disabled="
|
|
|
+ v-model="form.fPlangrossweight"
|
|
|
+ style="width: 80%"
|
|
|
+ v-input-limit="2"
|
|
|
+ placeholder="计划毛重"
|
|
|
+ maxlength="16"
|
|
|
+ :disabled="
|
|
|
browseStatus || current !== before || form.warehouseStatus > 3
|
|
|
"
|
|
|
- @change="tfNetweight"
|
|
|
+ @change="tfGrossweight"
|
|
|
>
|
|
|
- <template slot="append">{{ tfNetweightnum }}吨</template>
|
|
|
+ <template slot="append">{{ tfGrossweightnum }}吨</template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="计划毛重(kg)" prop="fPlangrossweight">
|
|
|
+ <el-form-item label="计划净重(kg)" prop="fPlannetweight">
|
|
|
<el-input
|
|
|
- v-model="form.fPlangrossweight"
|
|
|
+ v-model="form.fPlannetweight"
|
|
|
style="width: 80%"
|
|
|
- v-input-limit="2"
|
|
|
- placeholder="计划毛重"
|
|
|
maxlength="16"
|
|
|
+ v-input-limit="2"
|
|
|
+ placeholder="计划净重"
|
|
|
+ @input="changePlannetWeight"
|
|
|
:disabled="
|
|
|
browseStatus || current !== before || form.warehouseStatus > 3
|
|
|
"
|
|
|
- @change="tfGrossweight"
|
|
|
+ @change="tfNetweight"
|
|
|
>
|
|
|
- <template slot="append">{{ tfGrossweightnum }}吨</template>
|
|
|
+ <template slot="append">{{ tfNetweightnum }}吨</template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -551,6 +551,26 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="打印抬头">
|
|
|
+ <el-select
|
|
|
+ v-model="form.fCompany"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请输入关键词"
|
|
|
+ style="width: 80%"
|
|
|
+ @change="changePrint"
|
|
|
+ :disabled="browseStatus || form.warehouseStatus > 3"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in fMblnoOptions"
|
|
|
+ :key="index.fId"
|
|
|
+ :label="item.fName"
|
|
|
+ :value="item.fId"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<el-row>
|
|
|
@@ -1440,6 +1460,8 @@
|
|
|
:CntrTable="CntrTable"
|
|
|
:cntrList="cntrList"
|
|
|
:goodsOptions="goodsOptions"
|
|
|
+ :fCompanyName="fCompanyName"
|
|
|
+ :printFeeConfirm="printFeeConfirm"
|
|
|
></income-money>
|
|
|
</el-collapse-item>
|
|
|
|
|
|
@@ -1879,7 +1901,7 @@
|
|
|
position: relative;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}作业单
|
|
|
+ {{ fCompanyName? fCompanyName: company }}作业单
|
|
|
<div
|
|
|
style="
|
|
|
display: flex;
|
|
|
@@ -2010,7 +2032,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}收货单
|
|
|
+ {{ fCompanyName? fCompanyName: company }}收货单
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex">
|
|
|
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
|
|
|
@@ -2081,7 +2103,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}进仓单
|
|
|
+ {{ fCompanyName? fCompanyName: company }}进仓单
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -2236,7 +2258,10 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}入库单
|
|
|
+ {{ fCompanyName? fCompanyName: company }}入库单
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content: flex-end">
|
|
|
+ <div>制单人:{{ form.createBy }}</div>
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex">
|
|
|
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
|
|
|
@@ -2341,7 +2366,10 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}入库单
|
|
|
+ {{ fCompanyName? fCompanyName: company }}入库单
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content: flex-end">
|
|
|
+ <div>制单人:{{ form.createBy }}</div>
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex">
|
|
|
<table
|
|
|
@@ -2450,7 +2478,10 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}入库单
|
|
|
+ {{ fCompanyName? fCompanyName: company }}入库单
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content: flex-end">
|
|
|
+ <div>制单人:{{ form.createBy }}</div>
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex">
|
|
|
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
|
|
|
@@ -2558,7 +2589,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}入库单
|
|
|
+ {{ fCompanyName? fCompanyName: company }}入库单
|
|
|
</div>
|
|
|
<div style="width: 100%">
|
|
|
<div style="width: 100%;display: flex">
|
|
|
@@ -2683,7 +2714,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -2799,7 +2830,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -2887,7 +2918,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -2975,7 +3006,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}货物标识卡
|
|
|
+ {{ fCompanyName? fCompanyName: company }}货物标识卡
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -3089,7 +3120,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div style="display: flex; flex-direction: column; margin-left: 70%">
|
|
|
<div>{{ form.fBillno }}</div>
|
|
|
@@ -3180,7 +3211,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}货物标识卡
|
|
|
+ {{ fCompanyName? fCompanyName: company }}货物标识卡
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex;flex-direction: column">
|
|
|
<table
|
|
|
@@ -3389,7 +3420,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -3593,7 +3624,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}货物标识卡
|
|
|
+ {{ fCompanyName? fCompanyName: company }}货物标识卡
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex">
|
|
|
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
|
|
|
@@ -3635,11 +3666,13 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>本垛件数</td>
|
|
|
- <td colspan="2">{{ form.fPlanqty }}</td>
|
|
|
+ <td colspan="2"></td>
|
|
|
+<!-- <td colspan="2">{{ form.fPlanqty }}</td>-->
|
|
|
<td v-if="radio == 1">本垛净重(吨)</td>
|
|
|
<td v-if="radio == 2">本垛净重(千克)</td>
|
|
|
- <td v-if="radio == 1" colspan="2">{{ (form.fPlannetweight / 1000).toFixed(4) }}</td>
|
|
|
- <td v-if="radio == 2" colspan="2">{{ form.fPlannetweight }}</td>
|
|
|
+ <td colspan="2"></td>
|
|
|
+<!-- <td v-if="radio == 1" colspan="2">{{ (form.fPlannetweight / 1000).toFixed(4) }}</td>-->
|
|
|
+<!-- <td v-if="radio == 2" colspan="2">{{ form.fPlannetweight }}</td>-->
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>入库日期</td>
|
|
|
@@ -3793,7 +3826,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div style="display:flex;flex-direction: column;margin-left: 70%">
|
|
|
<div>{{ form.fBillno }}</div>
|
|
|
@@ -3878,7 +3911,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}货物标识卡
|
|
|
+ {{ fCompanyName? fCompanyName: company }}货物标识卡
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex">
|
|
|
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%" v-for="(item, index) in Printinglist"
|
|
|
@@ -4071,7 +4104,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -4266,7 +4299,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}货物标识卡
|
|
|
+ {{ fCompanyName? fCompanyName: company }}货物标识卡
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -4378,7 +4411,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}货物标识卡
|
|
|
+ {{ fCompanyName? fCompanyName: company }}货物标识卡
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex">
|
|
|
<table
|
|
|
@@ -4577,7 +4610,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -4972,7 +5005,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div style="display:flex;flex-direction: column;margin-left: 70%">
|
|
|
<div>{{ form.fBillno }}</div>
|
|
|
@@ -5063,7 +5096,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}货物标识卡
|
|
|
+ {{ fCompanyName? fCompanyName: company }}货物标识卡
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex">
|
|
|
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%" v-for="(item, index) in Printinglist"
|
|
|
@@ -5256,7 +5289,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -5355,7 +5388,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}入库单
|
|
|
+ {{ fCompanyName? fCompanyName: company }}入库单
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -5570,7 +5603,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}货物标识卡
|
|
|
+ {{ fCompanyName? fCompanyName: company }}货物标识卡
|
|
|
</div>
|
|
|
<div class="print_table" style="display: flex;flex-direction: column">
|
|
|
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%" v-for="(item, index) in Printinglist"
|
|
|
@@ -5773,7 +5806,7 @@
|
|
|
margin-bottom: 5px;
|
|
|
"
|
|
|
>
|
|
|
- {{ company }}
|
|
|
+ {{ fCompanyName? fCompanyName: company }}
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -6261,7 +6294,7 @@ import {
|
|
|
feesCheck
|
|
|
} from "@/api/warehouseBusiness/warehouseInStock";
|
|
|
import {operationAgreement} from "@/api/agreement/agreement";
|
|
|
-import {listCorps} from "@/api/basicdata/corps";
|
|
|
+import {listCorps, getCorps} from "@/api/basicdata/corps";
|
|
|
import {listFees, getFees} from "@/api/basicdata/fees";
|
|
|
import {
|
|
|
listWarehouse,
|
|
|
@@ -6699,12 +6732,29 @@ export default {
|
|
|
entryPrinting: 1,
|
|
|
weighedRequired: 1,
|
|
|
inTime: '',
|
|
|
- bring: null
|
|
|
+ bring: null,
|
|
|
+ // 选择打印抬头中文名
|
|
|
+ fCompanyName: '',
|
|
|
+ printFeeConfirm: {
|
|
|
+ fAddr: '',
|
|
|
+ fBankname: '',
|
|
|
+ fBankno: '',
|
|
|
+ fTel: '',
|
|
|
+ fTax: '',
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.setRowList = this.tableDate;
|
|
|
this.getRowList = this.tableDate.filter((e) => e.checked == 0);
|
|
|
+ this.getDicts("st_in_type").then((response) => {
|
|
|
+ this.businessTypeOption = response.data;
|
|
|
+ localStorage.setItem("businessTypeList", JSON.stringify(response.data));
|
|
|
+ });
|
|
|
+ this.getDicts("storage_type").then((response) => {
|
|
|
+ this.fStorageTypeOptions = response.data;
|
|
|
+ localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
|
|
|
+ });
|
|
|
this.getDicts("data_stltype_type").then((response) => {
|
|
|
this.fStltypeOptions = response.data;
|
|
|
});
|
|
|
@@ -6773,7 +6823,6 @@ export default {
|
|
|
this.showfPartNumber = response.msg;
|
|
|
});
|
|
|
this.getConfigKey("data_showcar").then((response) => {
|
|
|
- console.log(response.msg)
|
|
|
this.dataShowcar = response.msg;
|
|
|
if (this.dataShowcar == "0") {
|
|
|
this.detailsHidden2 = false;
|
|
|
@@ -7668,6 +7717,8 @@ export default {
|
|
|
if (this.form.fStltypeid || this.form.fStltypeid == 0) {
|
|
|
this.$set(this.form, "fStltypeid", this.form.fStltypeid.toString());
|
|
|
}
|
|
|
+ // 判断有没有打印抬头
|
|
|
+ if (this.form.fCompany) this.changePrint()
|
|
|
},
|
|
|
getForm() {
|
|
|
let fId = null
|
|
|
@@ -8071,6 +8122,7 @@ export default {
|
|
|
}
|
|
|
this.detailList.forEach(item => {
|
|
|
this.$set(item, 'fOriginalbillno', this.form.fMblno)
|
|
|
+ this.$set(item, 'fShipper', this.form.fShipper)
|
|
|
})
|
|
|
for (let item in this.warehouseDrList) {
|
|
|
if (!this.warehouseDrList[item].fCorpid) {
|
|
|
@@ -8246,7 +8298,7 @@ export default {
|
|
|
fAmount: null,
|
|
|
fCurrency: "RMB",
|
|
|
fExrate: "1",
|
|
|
- fTaxrate: this.fTaxrate,
|
|
|
+ fTaxrate: '0',
|
|
|
fCxrate: null,
|
|
|
fRate: null,
|
|
|
remarks: null,
|
|
|
@@ -8744,7 +8796,6 @@ export default {
|
|
|
this.container += item
|
|
|
})
|
|
|
this.container = this.container.slice(0, this.container.length - 1)
|
|
|
- console.log(this.container)
|
|
|
this.print_zpdkrkd = true
|
|
|
} else if (command == "g") {
|
|
|
let date = new Date();
|
|
|
@@ -8857,7 +8908,7 @@ export default {
|
|
|
fAmount: null,
|
|
|
fCurrency: "RMB",
|
|
|
fExrate: "1",
|
|
|
- fTaxrate: this.fTaxrate,
|
|
|
+ fTaxrate: '0',
|
|
|
fCxrate: null,
|
|
|
fRate: null,
|
|
|
remarks: null,
|
|
|
@@ -9178,6 +9229,14 @@ export default {
|
|
|
this.form.fId = ''
|
|
|
this.resetForm("form");
|
|
|
this.resetForm("importList");
|
|
|
+ this.printFeeConfirm = {
|
|
|
+ fAddr: '',
|
|
|
+ fBankname: '',
|
|
|
+ fBankno: '',
|
|
|
+ fTel: '',
|
|
|
+ fTax: '',
|
|
|
+ }
|
|
|
+ this.fCompanyName = '';
|
|
|
this.detailList = [];
|
|
|
this.relevantAttachments = [];
|
|
|
this.warehouseCrList = [];
|
|
|
@@ -9308,6 +9367,27 @@ export default {
|
|
|
this.$set(this.form, 'fTel', res.data.fTel)
|
|
|
})
|
|
|
},
|
|
|
+ changePrint() {
|
|
|
+ if (this.form.fCompany) {
|
|
|
+ getCorps(this.form.fCompany).then(res => {
|
|
|
+ this.fCompanyName = res.data.corp.fName
|
|
|
+ this.printFeeConfirm.fAddr = res.data.corp.fAddr
|
|
|
+ this.printFeeConfirm.fTel = res.data.corp.fTel
|
|
|
+ this.printFeeConfirm.fBankname = res.data.corp.fBankname
|
|
|
+ this.printFeeConfirm.fBankno = res.data.corp.fBankno
|
|
|
+ this.printFeeConfirm.fTax = res.data.corp.fTax
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.fCompanyName = ''
|
|
|
+ this.printFeeConfirm = {
|
|
|
+ fAddr: '',
|
|
|
+ fBankname: '',
|
|
|
+ fBankno: '',
|
|
|
+ fTel: '',
|
|
|
+ fTax: '',
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
// 监听 addOrUpdateVisible 改变
|