|
@@ -798,12 +798,14 @@
|
|
|
<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
|
|
@@ -4238,6 +4240,7 @@ export default {
|
|
|
isShowInvoice: null,
|
|
|
// 是否启用费用确认单
|
|
|
isShowFeesConfirm: null,
|
|
|
+ entryPrinting: 1,
|
|
|
// 选择打印抬头中文名
|
|
|
fCompanyName: '',
|
|
|
printFeeConfirm: {
|
|
@@ -4284,6 +4287,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 +4914,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 +5746,45 @@ export default {
|
|
|
},
|
|
|
// 库存明细多选
|
|
|
Selectinventory(selection) {
|
|
|
- this.Printinglist = selection;
|
|
|
+ this.Printinglist = selection
|
|
|
+ //允许撤销入库list
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /* this.Printinglist = selection;
|
|
|
//允许确认入库list
|
|
|
this.dataListSelection = [];
|
|
|
this.dataListSelection = selection.filter((e) => e.fBillstatus == 30);
|
|
|
//允许撤销入库list
|
|
|
this.dataWithdrawList = [];
|
|
|
- this.dataWithdrawList = selection.filter((e) => e.fBillstatus == 40);
|
|
|
+ this.dataWithdrawList = selection.filter((e) => e.fBillstatus == 40); */
|
|
|
},
|
|
|
// 合计
|
|
|
getSummaries(param) {
|