多个供应商无法弹窗问题,单据接口被删问题

prod
anthonywj 2 years ago
parent 80b37e01a7
commit fd4cf37c02

@ -57,6 +57,7 @@ export function submitAllocateBiz(query) {
}); });
} }
export function saveOrderWeb(query) { export function saveOrderWeb(query) {
return axios({ return axios({
url: "/warehouse/inout/saveOrderWeb", url: "/warehouse/inout/saveOrderWeb",
@ -437,6 +438,13 @@ export function getOrderList(params) {
}); });
} }
export function getOrderFilter(params) {
return axios({
url: "udiwms/inout/preInorder/filter",
method: "get",
params: params
});
}
export function updateStatus(query) { export function updateStatus(query) {
return axios({ return axios({
@ -528,3 +536,12 @@ export function orderDetailAdd(params) {
data: params data: params
}); });
} }
export function orderChange(query) {
return axios({
url: "/udiwms/stock/order/change",
method: "post",
data: query
});
}

@ -362,6 +362,24 @@
> >
</dialog-create-order-select> </dialog-create-order-select>
</el-dialog> </el-dialog>
<!-- 绑定供应商-->
<el-dialog
:title="selectUnitTitle"
:visible.sync="dialogTableVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="dialogTableVisible"
width="80%"
append-to-body
>
<DialogSelectUnit
:codeId="codeFormData"
v-on:selectSupUnit="selectSupUnit"
></DialogSelectUnit>
</el-dialog>
</div> </div>
</template> </template>
@ -387,6 +405,7 @@ import bizDetailPanel from "./PanelCreateOrderBizDetail";
import A from "../../plugins/KeyScaner"; import A from "../../plugins/KeyScaner";
import {findByInvUser} from "@/api/basic/busType"; import {findByInvUser} from "@/api/basic/busType";
import {getInvSpaceList} from "@/api/inventory/invSpace"; import {getInvSpaceList} from "@/api/inventory/invSpace";
import DialogSelectUnit from "./DialogSelectUnit";
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -437,6 +456,7 @@ export default {
produceDate: null, produceDate: null,
expireDate: null, expireDate: null,
serialNo: null, serialNo: null,
relId: null,
}, },
curInvOptions: [], curInvOptions: [],
@ -447,7 +467,6 @@ export default {
curPreInInvOptions: [], // curPreInInvOptions: [], //
curPreInSpaceOptions: [], // curPreInSpaceOptions: [], //
curAction: { curAction: {
corpType: 0, corpType: 0,
genUnit: false, genUnit: false,
@ -516,6 +535,7 @@ export default {
bizDetailPanel, bizDetailPanel,
editCodeDialog, editCodeDialog,
DialogCreateOrderSelect, DialogCreateOrderSelect,
DialogSelectUnit
}, },
methods: { methods: {
// //
@ -819,9 +839,11 @@ export default {
} else if (response.code == 503) { } else if (response.code == 503) {
this.curRow = response.data; this.curRow = response.data;
this.orderFormData.billNo = this.curRow.orderId; this.orderFormData.billNo = this.curRow.orderId;
this.refreshCodesPanel(); this.codeFormData.relId = this.curRow.relId,
this.refreshCodesPanel();
this.selectUnitTitle = response.message; this.selectUnitTitle = response.message;
this.$message.error(response.message); this.$message.error(response.message);
this.dialogTableVisible = true;
} else if (response.code == 504) { } else if (response.code == 504) {
this.$confirm(response.message, "提示", { this.$confirm(response.message, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
@ -1061,22 +1083,9 @@ export default {
this.$router.go(-1); this.$router.go(-1);
}, },
selectSupUnit(row) { selectSupUnit(row) {
let query = { this.dialogTableVisible = false;
id: this.curRow.id, this.orderFormData.selectSupId = row.erpId;
supId: row.erpId, this.addCode();
};
updateCodeBindSup(query)
.then((response) => {
if (response.code == 20000) {
this.$message.success("绑定成功");
this.orderFormData.id = this.curRow.orderId;
this.getCodeList();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});
}, },
closeCodeDialog() { closeCodeDialog() {
this.editOriginCodeVisible = false; this.editOriginCodeVisible = false;

@ -25,21 +25,24 @@
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="uploadData('IO_ORDER')" <el-button type="primary" icon="search" @click="uploadData('IO_ORDER')"
v-if="configParms.orderScanFinish==1 || configParms.orderUnReceive==1 || configParms.orderUnCheck==1"> >
同步单据 同步单据
</el-button> </el-button>
<el-button type="primary" icon="search" @click="uploadData('DOCUMENT_TYPE_DATA')" <el-button type="primary" icon="search" @click="uploadData('DOCUMENT_TYPE_DATA')"
v-if="configParms.typeBus==1||configParms.typeScan==1||configParms.typeThird==1"> v-if="configParms.typeBus==1||configParms.typeScan==1||configParms.typeThird==1">
同步单据类型 同步单据类型
</el-button> </el-button>
<el-button type="primary" icon="search" @click="uploadData('THIRD_DATA')" v-if="configParms.basicThirdDept==1||configParms.basicThirdInv==1||configParms.basicThirdProducts==1||configParms.basicThirdCorp==1"> <el-button type="primary" icon="search" @click="uploadData('THIRD_DATA')"
</el-button> v-if="configParms.basicThirdDept==1||configParms.basicThirdInv==1||configParms.basicThirdProducts==1||configParms.basicThirdCorp==1">
<el-button type="primary" icon="search" @click="uploadData('USER_DATA')" v-if="configParms.basicDept==1 || configParms.basicInv==1|| configParms.sysUser==1"> 同步第三方基础数据
</el-button> </el-button>
<el-button type="primary" icon="search" @click="uploadData('SYS_SET_DATA')" v-if="configParms.systemConfig==1||configParms.entrustAction==1||configParms.printConfig==1 <el-button type="primary" icon="search" @click="uploadData('USER_DATA')"
v-if="configParms.basicDept==1 || configParms.basicInv==1|| configParms.sysUser==1">同步用户信息
</el-button>
<el-button type="primary" icon="search" @click="uploadData('SYS_SET_DATA')" v-if="configParms.systemConfig==1||configParms.entrustAction==1||configParms.printConfig==1
||configParms.scanChangeConfig==1||configParms.busChangeConfig==1">同步系统设置信息 ||configParms.scanChangeConfig==1||configParms.busChangeConfig==1">同步系统设置信息
</el-button> </el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
@ -355,15 +358,15 @@ export default {
} }
}) })
}, },
uploadData(exportType){ uploadData(exportType) {
if(!this.filterQuery.syncTime){ if (!this.filterQuery.syncTime) {
this.$message.error("请选择同步时间"); this.$message.error("请选择同步时间");
return false return false
} }
let param = { let param = {
exportType : exportType, exportType: exportType,
syncTime: this.filterQuery.syncTime syncTime: this.filterQuery.syncTime
} }
uploadData(param).then((response) => { uploadData(param).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.filterQuery.page = 1 this.filterQuery.page = 1
@ -371,12 +374,13 @@ export default {
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
this.filterQuery.syncTime=null this.filterQuery.syncTime = null
setTimeout(()=>{ setTimeout(() => {
this.getList(); this.getList();
},666) }, 666)
}) })
.catch(() => {}); .catch(() => {
});
} }
}, },

Loading…
Cancel
Save