1.完成单据类型页面功能

prod
x_z 2 years ago
parent 4006c4c81b
commit 0f4f200bbc

@ -214,7 +214,7 @@ export default {
codeFillCheck: null, codeFillCheck: null,
defaultInv: null, defaultInv: null,
defaultSubInv: null, defaultSubInv: null,
orderVisibleType: 0, orderVisibleType: null,
advanceType: null, advanceType: null,
preIn: null, preIn: null,
originAction: null, originAction: null,
@ -297,7 +297,6 @@ export default {
this.$message.error("出入库类型不能为空!"); this.$message.error("出入库类型不能为空!");
return; return;
} }
this.inputQuery.enable = 1;
insertBusType(this.inputQuery) insertBusType(this.inputQuery)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
@ -356,7 +355,59 @@ export default {
}, },
handleAddClick() { handleAddClick() {
this.inputQuery = {enable: false, expireTip: true}; this.inputQuery = {
action: "",
name: "",
enable: true,
remark: "",
mainAction: "",
thirdSysFk: "",
id: "",
checkEnable: false,
genUnit: false,
innerOrder: false,
spUse: null,
secCheckEnable: null,
checkUdims: null,
checkPdaEd: null,
checkPdaUn: null,
checkPc: null,
checkWebNew: null,
checkChange: null,
checkCopy: null,
secCheckUdims: null,
secCheckPdaEd: null,
secCheckPdaUn: null,
secCheckPc: null,
secCheckWebNew: null,
secCheckChange: null,
thirdAction: null,
secCheckSp: null,
checkSp: null,
checkBalacne: null,
secCheckBalacne: null,
secCheckCopy: null,
corpType: null,
storageCode: null,
supplementOrderType: null,
defaultUnit: null,
useDyCount: null,
expireTip: true,
prefix: null,
outTospms: null,
ullageFill: null,
scanPreIn: null,
vailInv: null,
entrutSpms: null,
codeFillCheck: null,
defaultInv: null,
defaultSubInv: null,
orderVisibleType: null,
advanceType: null,
preIn: null,
originAction: null,
comments: null
}
this.addDialogVisible = true; this.addDialogVisible = true;
}, },

@ -49,7 +49,7 @@
<el-row type="flex"> <el-row type="flex">
<el-col :span="11"> <el-col :span="11">
<el-form-item label="内部进出平衡补单" prop="supplementOrderType"> <el-form-item label="内部进出平衡补单" prop="supplementOrderType">
<el-select :disabled="inputQuery.corpType !=1" <el-select :disabled="inputQuery.corpType !=3"
size="small" size="small"
style="width: 90%" style="width: 90%"
v-model="inputQuery.supplementOrderType" v-model="inputQuery.supplementOrderType"
@ -73,7 +73,7 @@
remote remote
size="small" size="small"
style="width: 90%" style="width: 90%"
:disabled="inputQuery.corpType!=3" :disabled="inputQuery.corpType!=4"
clearable="true" clearable="true"
reserve-keyword reserve-keyword
:remote-method="findSpecialMethod" :remote-method="findSpecialMethod"
@ -185,6 +185,7 @@ import {candidateBusType} from "@/api/basic/busType";
import busTypeAdvancedSettings from "@/views/basic/busType/busTypeAdvancedSettings.vue"; import busTypeAdvancedSettings from "@/views/basic/busType/busTypeAdvancedSettings.vue";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {getOriginBusType} from "@/api/basic/busOriginType"; import {getOriginBusType} from "@/api/basic/busOriginType";
import {getBasicUnitMaintains2} from "@/api/basic/basicUnitMaintain";
export default { export default {
name: "BussinessTypeModify", name: "BussinessTypeModify",
@ -212,17 +213,17 @@ export default {
originTypes: [], originTypes: [],
value: "", value: "",
options: [{ options: [{
value: 0,
label: '供应商信息'
}, {
value: 1, value: 1,
label: '仓库信息'
},
{
value: 2,
label: '客户信息' label: '客户信息'
}, { }, {
value: 2,
label: '供应商信息'
},
{
value: 3, value: 3,
label: '内部科室'
}, {
value: 4,
label: '特殊往来' label: '特殊往来'
}], }],
twoCheck: false, twoCheck: false,
@ -240,14 +241,13 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
this.inputQuery.corpType = 1;
}, },
findSpecialMethod() { findSpecialMethod() {
let query = { let query = {
corpType: 4, corpType: 4,
}; };
getBasicUnitMaintains(query).then((response) => { getBasicUnitMaintains2(query).then((response) => {
this.fromSpecialOptions = response.data.page.list || []; this.fromSpecialOptions = response.data.list || [];
}).catch(() => { }).catch(() => {
}) })
@ -256,6 +256,9 @@ export default {
if (type != 2) { if (type != 2) {
this.inputQuery.genUnit = false; this.inputQuery.genUnit = false;
} }
if (this.inputQuery.corpType === 4) {
this.findSpecialMethod();
}
}, },
// //

Loading…
Cancel
Save