自助平台代码同步

wms_pzh
anthonyywj2 2 years ago
parent c6969d9cd9
commit 1bb8ff9ed6

@ -393,7 +393,7 @@ export default {
key: query, key: query,
onlyMain: true, onlyMain: true,
} }
getOriginBusType(tQuery) getOriginBusType(tQuery)
.then((response) => { .then((response) => {
this.originTypes = response.data.list || []; this.originTypes = response.data.list || [];

@ -54,6 +54,27 @@
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: -10px"> <el-row :gutter="20" style="margin-top: -10px">
<el-col :span="3">
<div class="ao-text">
<span>采购类型</span>
</div>
</el-col>
<el-col :span="7">
<el-form-item prop="billType">
<el-select v-model="formData.billType" placeholder="请选择采购类型" style="width: 100%"
clearable>
<el-option
v-for="item in busTypes"
:key="item.originAction"
:label="item.originName"
:value="item.originAction">
<span style="float: left">{{ item.originName }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>采购仓库</span> <span>采购仓库</span>
@ -85,6 +106,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row :gutter="20" style="margin-top: -10px">
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>采购说明</span> <span>采购说明</span>
@ -197,6 +222,7 @@ import stockOrderNewSelectProduct from "../business/stockOrderNewSelectProduct";
import {inserThrOrderWeb, delApplyDetail, listApplyDetail} from "@/api/purchase/purPlan"; import {inserThrOrderWeb, delApplyDetail, listApplyDetail} from "@/api/purchase/purPlan";
import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAllByUser} from "@/api/basic/invWarehouse";
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {getBusChange} from "@/api/basic/busTypeChange";
export default { export default {
name: "idQuery", name: "idQuery",
@ -371,7 +397,9 @@ export default {
if (this.orderEditor) { if (this.orderEditor) {
this.detailLoading = true; this.detailLoading = true;
if (this.$isNotBlank(row.id)) { if (this.$isNotBlank(row.id)) {
delApplyDetail(row.id) let delIds = [];
delIds.push(row.id)
delApplyDetail(delIds)
.then(response => { .then(response => {
this.detailLoading = false; this.detailLoading = false;
if (response.code === 20000) { if (response.code === 20000) {
@ -450,6 +478,18 @@ export default {
this.formData.locStorageCode = item; this.formData.locStorageCode = item;
this.findSubInvs(); this.findSubInvs();
}, },
getBusType() {
let query = {
enable: false,
type: 3,
};
getBusChange(query)
.then((response) => {
this.busTypes = response.data.list || [];
})
.catch(() => {
});
},
}, },
filters: {}, filters: {},
mounted() { mounted() {
@ -480,6 +520,7 @@ export default {
this.orderEditor = false; this.orderEditor = false;
} }
this.getStorage(); this.getStorage();
this.getBusType();
this.codeArray = []; this.codeArray = [];
}, },
}; };

File diff suppressed because it is too large Load Diff

@ -916,6 +916,7 @@ export default {
}, },
getBusType() { getBusType() {
let query = { let query = {
type: 1,
enable: false, enable: false,
}; };
getBusChange(query) getBusChange(query)

Loading…
Cancel
Save