|
|
|
@ -279,9 +279,9 @@
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style="display: flex; justify-content: space-between; align-items: center; height: 66px; /* 约为 200px 的 1/3 */"
|
|
|
|
|
@click="selectBusType(info.code)">
|
|
|
|
|
<p style="font-size: 20px;background-color: #e1f3fb;font-weight: bold;">{{ info.name }}</p>
|
|
|
|
|
style="display: flex; justify-content: space-between; align-items: center; height: 46px; /* 约为 200px 的 1/3 */"
|
|
|
|
|
@click="selectBusType(info.documentTypeCode)">
|
|
|
|
|
<p style="font-size: 20px;background-color: #e1f3fb;font-weight: bold;">{{ info.busName }}</p>
|
|
|
|
|
<!-- 假设你的信息对象中包含一个title属性 -->
|
|
|
|
|
<!-- <div style="width: 60px; height: 60px; display: flex; justify-content: center; align-items: center;">-->
|
|
|
|
|
<!-- <!– 二维码占位,这里用灰色方块代替 –>-->
|
|
|
|
@ -291,11 +291,11 @@
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
</div>
|
|
|
|
|
<div style="flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 10px;"
|
|
|
|
|
@click="selectBusType(info.code)">
|
|
|
|
|
@click="selectBusType(info.documentTypeCode)">
|
|
|
|
|
<!-- 假设这里有一些信息内容 -->
|
|
|
|
|
<p style="font-size: 14px;background-color: #e1f3fb">{{ info.code }}</p>
|
|
|
|
|
<p style="font-size: 14px;background-color: #e1f3fb">{{ info.documentTypeCode }}</p>
|
|
|
|
|
<el-button type="primary" style="position: absolute; bottom: 20px; right: 20px;" icon="el-icon-thumb"
|
|
|
|
|
@click="selectBusType(info.code)">开始作业
|
|
|
|
|
@click="selectBusType(info.documentTypeCode)">开始作业
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@ -419,9 +419,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
getBillNo(billNo) {
|
|
|
|
|
getBillNo(billNo,workPlaceCode){
|
|
|
|
|
let post = {
|
|
|
|
|
billNo: billNo,
|
|
|
|
|
workPlaceCode: workPlaceCode,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
}
|
|
|
|
@ -456,7 +457,8 @@ export default {
|
|
|
|
|
this.findFromInvList("");
|
|
|
|
|
}
|
|
|
|
|
if (this.formData.billNo != null){
|
|
|
|
|
this.getBillNo(this.formData.billNo)
|
|
|
|
|
this.getBillNo(this.formData.billNo,this.formData.workplaceCode)
|
|
|
|
|
this.startDeal();
|
|
|
|
|
}else {
|
|
|
|
|
this.findCurOrder();
|
|
|
|
|
}
|
|
|
|
@ -690,39 +692,25 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
confirmFinishOrder() {
|
|
|
|
|
finishOrder() {
|
|
|
|
|
this.$confirm('是否确定完成此单据?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.finishOrder()
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
finishOrder() {
|
|
|
|
|
finishOrder(this.formData).then(res => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.formData = {tagStatus: -1};
|
|
|
|
|
this.curRow = null
|
|
|
|
|
this.formData.confirmFinish = false;
|
|
|
|
|
this.refreshCodesPanel(this)
|
|
|
|
|
} else if (res.code == 502) {
|
|
|
|
|
this.$confirm(res.message, '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.formData.confirmFinish = true;
|
|
|
|
|
this.finishOrder();
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
updateOrder() {
|
|
|
|
@ -893,6 +881,8 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|