|
@@ -798,25 +798,27 @@
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="info"
|
|
|
+ v-if="entryPrinting == 0"
|
|
|
prop="打印"
|
|
|
@click="printZyd"
|
|
|
>作业单
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
+ v-if="entryPrinting == 0"
|
|
|
:disabled="browseStatus"
|
|
|
@click="discharge"
|
|
|
>叫车进场</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
- :disabled="dataListSelection.length <= 0 || browseStatus"
|
|
|
+ :disabled="dataListSelection.length <= 0 || browseStatus || deliveryConfirmation"
|
|
|
@click="creditClick"
|
|
|
>调拨确认
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
- :disabled="dataWithdrawList.length <= 0 || browseStatus || form.fBillstatus > 3"
|
|
|
+ :disabled="dataWithdrawList.length <= 0 || browseStatus || form.fBillstatus > 3 || cancelDelivery"
|
|
|
@click.prevent="withdrawClick"
|
|
|
>撤回调拨
|
|
|
</el-button>
|
|
@@ -2894,10 +2896,10 @@
|
|
|
<tr>
|
|
|
<td colspan="2" style="height: 20px">合 计</td>
|
|
|
<td>{{allfQty}}</td>
|
|
|
- <td v-if="radio == 1">{{ (allfNetweight / 1000).toFixed(4) }}</td>
|
|
|
<td v-if="radio == 1">{{ (allfGrossweight / 1000).toFixed(4) }}</td>
|
|
|
- <td v-if="radio == 2">{{ allfNetweight }}</td>
|
|
|
+ <td v-if="radio == 1">{{ (allfNetweight / 1000).toFixed(4) }}</td>
|
|
|
<td v-if="radio == 2">{{ allfGrossweight }}</td>
|
|
|
+ <td v-if="radio == 2">{{ allfNetweight }}</td>
|
|
|
<td></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
@@ -2999,10 +3001,10 @@
|
|
|
<tr>
|
|
|
<td colspan="2">合计:</td>
|
|
|
<td>{{allfQty}}</td>
|
|
|
- <td v-if="radio == 1">{{(allfNetweight/1000).toFixed(4)}}</td>
|
|
|
<td v-if="radio == 1">{{(allfGrossweight/1000).toFixed(4)}}</td>
|
|
|
- <td v-if="radio == 2">{{allfNetweight}}</td>
|
|
|
+ <td v-if="radio == 1">{{(allfNetweight/1000).toFixed(4)}}</td>
|
|
|
<td v-if="radio == 2">{{allfGrossweight}}</td>
|
|
|
+ <td v-if="radio == 2">{{allfNetweight}}</td>
|
|
|
<td></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
@@ -4238,6 +4240,7 @@ export default {
|
|
|
isShowInvoice: null,
|
|
|
// 是否启用费用确认单
|
|
|
isShowFeesConfirm: null,
|
|
|
+ entryPrinting: 1,
|
|
|
// 选择打印抬头中文名
|
|
|
fCompanyName: '',
|
|
|
printFeeConfirm: {
|
|
@@ -4248,6 +4251,8 @@ export default {
|
|
|
fTax: '',
|
|
|
},
|
|
|
battributionList: [],
|
|
|
+ cancelDelivery: false, //
|
|
|
+ deliveryConfirmation: false, //
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -4284,6 +4289,9 @@ export default {
|
|
|
this.fStorageTypeOptions = response.data;
|
|
|
localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
|
|
|
});
|
|
|
+ this.getConfigKey('entry.printing').then((response) => {
|
|
|
+ this.entryPrinting = response.msg
|
|
|
+ })
|
|
|
this.getConfigKey("data_showcar").then((response) => {
|
|
|
this.dataShowcar = response.msg;
|
|
|
if (this.dataShowcar == "0") {
|
|
@@ -4908,9 +4916,12 @@ export default {
|
|
|
if (!this.Printinglist[item].fId) {
|
|
|
return this.$message.error("请存在未保存的数据");
|
|
|
}
|
|
|
- if (this.Printinglist[item].fBillstatus == 10) {
|
|
|
- return this.$message.error("请存在未打印的作业单");
|
|
|
+ if (this.entryPrinting == 0) {
|
|
|
+ if (this.Printinglist[item].fBillstatus == 10) {
|
|
|
+ return this.$message.error("请存在未打印的作业单");
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
// if (!this.Printinglist[item].fTruckno) {
|
|
|
// return this.$message.error("车号不能为空");
|
|
|
// }
|
|
@@ -5737,13 +5748,38 @@ export default {
|
|
|
},
|
|
|
// 库存明细多选
|
|
|
Selectinventory(selection) {
|
|
|
- this.Printinglist = selection;
|
|
|
- //允许确认入库list
|
|
|
- this.dataListSelection = [];
|
|
|
- this.dataListSelection = selection.filter((e) => e.fBillstatus == 30);
|
|
|
+ this.Printinglist = selection
|
|
|
//允许撤销入库list
|
|
|
- this.dataWithdrawList = [];
|
|
|
- this.dataWithdrawList = selection.filter((e) => e.fBillstatus == 40);
|
|
|
+ this.dataWithdrawList = selection
|
|
|
+ //允许确认入库list
|
|
|
+ this.dataListSelection = selection
|
|
|
+ if (this.dataWithdrawList.length === 0) {
|
|
|
+ this.cancelDelivery = true
|
|
|
+ } else {
|
|
|
+ for (let item in this.dataWithdrawList) {
|
|
|
+ if (this.dataWithdrawList[item].fBillstatus === 40) {
|
|
|
+ this.cancelDelivery = false
|
|
|
+ this.deliveryConfirmation = true
|
|
|
+ for (let li in this.dataWithdrawList) {
|
|
|
+ if (this.entryPrinting != 0 ? this.dataWithdrawList[li].fBillstatus === 10 : this.dataWithdrawList[li].fBillstatus === 30) {
|
|
|
+ this.deliveryConfirmation = true
|
|
|
+ this.cancelDelivery = true
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else if (this.entryPrinting != 0 ? this.dataWithdrawList[item].fBillstatus === 10 : this.dataWithdrawList[item].fBillstatus === 30) {
|
|
|
+ this.deliveryConfirmation = false
|
|
|
+ this.cancelDelivery = true
|
|
|
+ for (let li in this.dataWithdrawList) {
|
|
|
+ if (this.dataWithdrawList[li].fBillstatus === 40) {
|
|
|
+ this.deliveryConfirmation = true
|
|
|
+ this.cancelDelivery = true
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
// 合计
|
|
|
getSummaries(param) {
|