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

prod
x_z 2 years ago
parent 4006c4c81b
commit 0f4f200bbc

@ -214,7 +214,7 @@ export default {
codeFillCheck: null,
defaultInv: null,
defaultSubInv: null,
orderVisibleType: 0,
orderVisibleType: null,
advanceType: null,
preIn: null,
originAction: null,
@ -297,7 +297,6 @@ export default {
this.$message.error("出入库类型不能为空!");
return;
}
this.inputQuery.enable = 1;
insertBusType(this.inputQuery)
.then((response) => {
if (response.code == 20000) {
@ -356,7 +355,59 @@ export default {
},
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;
},

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

Loading…
Cancel
Save