修改bug

dev
郑明梁 2 years ago
parent 25f5cc3f06
commit e8a74e7347

@ -598,7 +598,7 @@
<el-select v-model="inputQuery.checkPdaEd" style="width: 75%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkPdaEd" style="width: 75%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" placeholder="是否启用"
> >
<el-option label="无业务单扫码拣货" :value="0"></el-option> <el-option label="无业务单扫码拣货" :value="0"></el-option>
<el-option label="有业务单有三期拣货" :value="1"></el-option> <el-option label="有业务单有三期拣货" :value="1"></el-option>
<el-option label="有业务单无三期拣货" :value="2"></el-option> <el-option label="有业务单无三期拣货" :value="2"></el-option>
<el-option label="有业务单拣货(有无三期)" :value="3"></el-option> <el-option label="有业务单拣货(有无三期)" :value="3"></el-option>
@ -621,7 +621,7 @@
<el-select v-model="inputQuery.checkUdims" style="width: 75%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkUdims" style="width: 75%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" placeholder="是否启用"
> >
<el-option label="无业务单扫码拣货" :value="0"></el-option> <el-option label="无业务单扫码拣货" :value="0"></el-option>
<el-option label="有业务单有三期拣货" :value="1"></el-option> <el-option label="有业务单有三期拣货" :value="1"></el-option>
<el-option label="有业务单无三期拣货" :value="2"></el-option> <el-option label="有业务单无三期拣货" :value="2"></el-option>
<el-option label="有业务单拣货(有无三期)" :value="3"></el-option> <el-option label="有业务单拣货(有无三期)" :value="3"></el-option>
@ -644,7 +644,7 @@
<el-select v-model="inputQuery.checkPc" style="width: 75%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkPc" style="width: 75%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" placeholder="是否启用"
> >
<el-option label="无业务单扫码拣货" :value="0"></el-option> <el-option label="无业务单扫码拣货" :value="0"></el-option>
<el-option label="有业务单有三期拣货" :value="1"></el-option> <el-option label="有业务单有三期拣货" :value="1"></el-option>
<el-option label="有业务单无三期拣货" :value="2"></el-option> <el-option label="有业务单无三期拣货" :value="2"></el-option>
<el-option label="有业务单拣货(有无三期)" :value="3"></el-option> <el-option label="有业务单拣货(有无三期)" :value="3"></el-option>
@ -667,7 +667,7 @@
<el-select v-model="inputQuery.checkSp" style="width: 75%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkSp" style="width: 75%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" placeholder="是否启用"
> >
<el-option label="无业务单扫码拣货" :value="0"></el-option> <el-option label="无业务单扫码拣货" :value="0"></el-option>
<el-option label="有业务单有三期拣货" :value="1"></el-option> <el-option label="有业务单有三期拣货" :value="1"></el-option>
<el-option label="有业务单无三期拣货" :value="2"></el-option> <el-option label="有业务单无三期拣货" :value="2"></el-option>
<el-option label="有业务单拣货(有无三期)" :value="3"></el-option> <el-option label="有业务单拣货(有无三期)" :value="3"></el-option>
@ -689,7 +689,7 @@
<el-select v-model="inputQuery.checkChange" style="width: 75%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkChange" style="width: 75%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" placeholder="是否启用"
> >
<el-option label="无业务单扫码拣货" :value="0"></el-option> <el-option label="无业务单扫码拣货" :value="0"></el-option>
<el-option label="有业务单有三期拣货" :value="1"></el-option> <el-option label="有业务单有三期拣货" :value="1"></el-option>
<el-option label="有业务单无三期拣货" :value="2"></el-option> <el-option label="有业务单无三期拣货" :value="2"></el-option>
<el-option label="有业务单拣货(有无三期)" :value="3"></el-option> <el-option label="有业务单拣货(有无三期)" :value="3"></el-option>
@ -712,7 +712,7 @@
<el-select v-model="inputQuery.checkBalance" :disabled="!inputQuery.checkEnable" style="width: 75%" <el-select v-model="inputQuery.checkBalance" :disabled="!inputQuery.checkEnable" style="width: 75%"
placeholder="是否启用" placeholder="是否启用"
> >
<el-option label="无业务单扫码拣货" :value="0"></el-option> <el-option label="无业务单扫码拣货" :value="0"></el-option>
<el-option label="有业务单有三期拣货" :value="1"></el-option> <el-option label="有业务单有三期拣货" :value="1"></el-option>
<el-option label="有业务单无三期拣货" :value="2"></el-option> <el-option label="有业务单无三期拣货" :value="2"></el-option>
<el-option label="有业务单拣货(有无三期)" :value="3"></el-option> <el-option label="有业务单拣货(有无三期)" :value="3"></el-option>
@ -734,7 +734,7 @@
<el-select v-model="inputQuery.checkCopy" style="width: 75%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkCopy" style="width: 75%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" placeholder="是否启用"
> >
<el-option label="无业务单扫码拣货" :value="0"></el-option> <el-option label="无业务单扫码拣货" :value="0"></el-option>
<el-option label="有业务单有三期拣货" :value="1"></el-option> <el-option label="有业务单有三期拣货" :value="1"></el-option>
<el-option label="有业务单无三期拣货" :value="2"></el-option> <el-option label="有业务单无三期拣货" :value="2"></el-option>
<el-option label="有业务单拣货(有无三期)" :value="3"></el-option> <el-option label="有业务单拣货(有无三期)" :value="3"></el-option>

@ -341,10 +341,9 @@ export default {
endTime: "", endTime: "",
inCodeStatus: 0, inCodeStatus: 0,
}; };
this.getList();
this.haveDistributionVisible = true; this.haveDistributionVisible = true;
this.actDateRange = []; this.actDateRange = [];
this.getList();
}, },
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;

@ -124,6 +124,7 @@
v-if=" v-if="
curAction.corpType === 0 || curAction.corpType === 0 ||
curAction.corpType === 2 || curAction.corpType === 2 ||
curAction.corpType === 4 ||
(curAction.corpType === 1 && !curAction.genUnit) (curAction.corpType === 1 && !curAction.genUnit)
" "
> >
@ -790,6 +791,7 @@ export default {
page: 1, page: 1,
limit: 20, limit: 20,
}; };
debugger
if (this.curAction.corpType == 3) { if (this.curAction.corpType == 3) {
// //
cQuery.corpType = 3; cQuery.corpType = 3;
@ -801,6 +803,9 @@ export default {
} else if (this.curAction.corpType == 1) { } else if (this.curAction.corpType == 1) {
cQuery.corpType = 1; cQuery.corpType = 1;
cQuery.outType = 2; cQuery.outType = 2;
}else if (this.curAction.corpType == 4) {
//
cQuery.corpType = 4;
} else } else
return; return;
getBasicUnitMaintains(cQuery) getBasicUnitMaintains(cQuery)
@ -815,6 +820,7 @@ export default {
// //
actionChange(item) { actionChange(item) {
this.orderFormData.checkPreInOption = null; this.orderFormData.checkPreInOption = null;
this.orderFormData.checkPreInOrders = null; this.orderFormData.checkPreInOrders = null;
this.checkPreInArray = []; this.checkPreInArray = [];
@ -829,6 +835,7 @@ export default {
if ( if (
this.curAction.corpType == 0 || this.curAction.corpType == 0 ||
this.curAction.corpType == 2 || this.curAction.corpType == 2 ||
this.curAction.corpType == 4 ||
(this.curAction.corpType == 1 && !this.curAction.genUnit) (this.curAction.corpType == 1 && !this.curAction.genUnit)
) { ) {
//1. //1.

@ -61,12 +61,12 @@
<el-col :span="17"> <el-col :span="17">
<el-form-item label="往来单位:"> <el-form-item label="往来单位:">
<el-input v-model="inputQuery.fromCorp" ref="fromCorpInputRef" <el-input v-model="inputQuery.fromCorp" ref="fromCorpInputRef"
@keypress.enter.native="addFromCorp($event)" :disabled="this.inputQuery.udiCode==null" @keypress.enter.native="addFromCorp($event)" :disabled="this.inputQuery.udiCode==null || this.showFlg ==false"
placeholder="请输入往来单位" clearable></el-input> placeholder="请输入往来单位" clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<el-button type="primary" size="mini" :disabled="this.inputQuery.udiCode==null" @click="addFromCorp" <el-button type="primary" size="mini" :disabled="this.inputQuery.udiCode==null || this.showFlg == false" @click="addFromCorp"
style="margin-left: 15px">添加 style="margin-left: 15px">添加
</el-button> </el-button>
</el-col> </el-col>
@ -153,6 +153,7 @@ export default {
supId: null, supId: null,
}, },
pId: null, pId: null,
showFlg:false,
popupsVisible: false, popupsVisible: false,
orderMutiDelectVisible: false, orderMutiDelectVisible: false,
tableName: '使用记录选择', tableName: '使用记录选择',
@ -255,6 +256,8 @@ export default {
this.inputQuery.totalCount = response.data.data.totalCount this.inputQuery.totalCount = response.data.data.totalCount
this.inputQuery.useCount = response.data.data.useCount this.inputQuery.useCount = response.data.data.useCount
this.$refs.fromCorpInputRef.focus(); this.$refs.fromCorpInputRef.focus();
this.checkType=null;
this.showFlg=false;
this.enterKeyup(); this.enterKeyup();
} else { } else {
this.$refs.markInputRef.focus(); this.$refs.markInputRef.focus();
@ -270,6 +273,8 @@ export default {
}); });
} else if (data == 'no') { } else if (data == 'no') {
this.inputQuery.mark = ""; this.inputQuery.mark = "";
this.checkType=1;
this.showFlg=false;
this.$refs.markInputRef.focus(); this.$refs.markInputRef.focus();
this.enterKeyup(); this.enterKeyup();
} }
@ -321,6 +326,9 @@ export default {
if (this.inputQuery.fromCorp != 'true' && this.inputQuery.fromCorp != 'false') { if (this.inputQuery.fromCorp != 'true' && this.inputQuery.fromCorp != 'false') {
var query = { var query = {
udiCode:this.inputQuery.udiCode,
mark:this.inputQuery.mark,
checkType:this.checkType,
mutiIdFk: this.pId, mutiIdFk: this.pId,
fromCorp: this.inputQuery.fromCorp fromCorp: this.inputQuery.fromCorp
} }
@ -418,6 +426,7 @@ export default {
this.inputQuery.totalCount = response.data.totalCount this.inputQuery.totalCount = response.data.totalCount
this.inputQuery.useCount = response.data.useCount this.inputQuery.useCount = response.data.useCount
this.pId = response.data.id; this.pId = response.data.id;
this.showFlg=true;
this.$refs.fromCorpInputRef.focus(); this.$refs.fromCorpInputRef.focus();
this.selectMutiDetailList() this.selectMutiDetailList()
} else { } else {

@ -4,19 +4,20 @@
<el-form :model="filterQuery" label-width="100px"> <el-form :model="filterQuery" label-width="100px">
<el-row> <el-row>
<el-form-item label="单据号"> <el-form-item label="单据号">
<el-input v-model="filterQuery.recordKey" style="width: 100%" placeholder="请输入单据号" clearable></el-input> <el-input v-model="filterQuery.recordKey" style="width: 100%" placeholder="请输入单据号"
clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="单据日期"> <el-form-item label="单据日期">
<el-date-picker <el-date-picker
style="width: 100%" style="width: 100%"
:picker-options="pickerOptions" :picker-options="pickerOptions"
v-model="actDateRange" v-model="actDateRange"
type="daterange" type="daterange"
format="yyyy 年 MM 月 dd 日" format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -62,11 +63,11 @@
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
:limit.sync="filterQuery.limit" :limit.sync="filterQuery.limit"
:page.sync="filterQuery.page" :page.sync="filterQuery.page"
@pagination="handleCurrentChange" @pagination="handleCurrentChange"
></pagination> ></pagination>
</el-card> </el-card>
@ -86,33 +87,33 @@
</el-card> </el-card>
<el-dialog <el-dialog
:title="formMap[formName]" :title="formMap[formName]"
:visible.sync="newSpDistributionVisible" :visible.sync="newSpDistributionVisible"
width="80%" width="80%"
v-if="newSpDistributionVisible" v-if="newSpDistributionVisible"
@close='closeDialog' @close='closeDialog'
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
> >
<pureApplyEdit <pureApplyEdit
:closeDialog="closeDialog" :closeDialog="closeDialog"
:idQuery="idQuery" :idQuery="idQuery"
></pureApplyEdit> ></pureApplyEdit>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="内部码标签打印" title="内部码标签打印"
:visible.sync="qrcodeExportVisible" :visible.sync="qrcodeExportVisible"
width="80%" width="80%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="qrcodeExportVisible" v-if="qrcodeExportVisible"
@close='closeQRCodeExportDialog' @close='closeQRCodeExportDialog'
> >
<innerCodeDetail <innerCodeDetail
:closeDialog="closeQRCodeExportDialog" :closeDialog="closeQRCodeExportDialog"
:inQuery="inQuery" :inQuery="inQuery"
></innerCodeDetail> ></innerCodeDetail>
</el-dialog> </el-dialog>
@ -205,6 +206,7 @@ export default {
editStatus: 1, editStatus: 1,
}; };
this.actDateRange = []; this.actDateRange = [];
this.detailList = []
this.getList(); this.getList();
}, },
@ -223,33 +225,33 @@ export default {
} }
listInnerOrder(this.filterQuery) listInnerOrder(this.filterQuery)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.list = response.data.list || []; this.list = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
this.total = 0; this.total = 0;
}); });
}, },
handleDetail(row) { handleDetail(row) {
let query = {orderIdFk: row.recordKey}; let query = {orderIdFk: row.recordKey};
this.loading = true; this.loading = true;
listInnerOrderDetail(query) // listInnerOrderDetail(query) //
.then((response) => { .then((response) => {
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.detailList = []; this.detailList = [];
}); });
}, },
submitOrder(row) { submitOrder(row) {
this.loading = true; this.loading = true;
@ -258,18 +260,18 @@ export default {
purApplyEntity: row, purApplyEntity: row,
} }
inserThrOrderWeb(tQuery) inserThrOrderWeb(tQuery)
.then(response => { .then(response => {
this.loading = false; this.loading = false;
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功!"); this.$message.success("提交成功!");
this.getList(); this.getList();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}) })
}, },
deleteDialog(row) { deleteDialog(row) {
this.$confirm("此操作将永久删除该单据, 是否继续?", "提示", { this.$confirm("此操作将永久删除该单据, 是否继续?", "提示", {
@ -277,25 +279,25 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
delInnerOrder(row.id) delInnerOrder(row.id)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("删除成功"); this.$message.success("删除成功");
this.getList(); this.getList();
this.detailList = ""; this.detailList = "";
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
}) })
.catch(() => { .catch(() => {
}); });
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.filterQuery.page = val.page; this.filterQuery.page = val.page;

Loading…
Cancel
Save