禅道bug修改,自助同步到UDI管理

fengcang
anthonyywj2 3 years ago
parent ca6ad2d29b
commit 8edb785fde

@ -1,7 +1,7 @@
{ {
"UDI_SYNC_SERVER_IP": "http://192.168.0.109:9995/", "UDI_SYNC_SERVER_IP": "http://192.168.0.106:9995/",
"BASE_URL":"http://139.9.178.73:8080/UDI_WMS_MC/", "BASE_URL":"http://192.168.0.106:9991",
"SERVER_IP": "http://139.9.178.73:8080/", "SERVER_IP": "http://192.168.0.106:9991/",
"WEBSOCKET_URL": "ws://192.168.0.109:9991/UDI_WMS_MC/api/websocket/", "WEBSOCKET_URL": "ws://192.168.0.106:9991/UDI_WMS_MC/api/websocket/",
"hosp_name": "平和县医院" "hosp_name": "平和县医院"
} }

@ -201,11 +201,20 @@ export default {
this.$message.error("请输入接受委托仓库!"); this.$message.error("请输入接受委托仓库!");
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustInv)) { if (this.$isBlank(this.inputQuery.entrustUser)) {
this.$message.error("请输入接受委托人!"); this.$message.error("请输入接受委托人!");
return; return;
} }
if (this.$isBlank(this.inputQuery.invWarehouseCode)) {
this.$message.error("当前分库不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.entrustSubInv)) {
this.$message.error("请输入接受委托分库!");
return;
}
insertEntrustRece(this.inputQuery) insertEntrustRece(this.inputQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -227,13 +227,13 @@
min-width="30%" min-width="30%"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <!-- <el-button-->
type="text" <!-- type="text"-->
size="small" <!-- size="small"-->
@click.native="updateDirector(scope.row)"> <!-- @click.native="updateDirector(scope.row)">-->
{{ directorMap[scope.row.director] }} <!-- {{ directorMap[scope.row.director] }}-->
</el-button> <!-- </el-button>-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -663,7 +663,7 @@ export default {
children: "children", children: "children",
label: "name" label: "name"
}, },
setDictor: "设为主管", // setDictor: "",
fileList: [], fileList: [],
pCodes: [], pCodes: [],
uploadData: {}, uploadData: {},
@ -671,7 +671,7 @@ export default {
index: null, index: null,
formName: null, formName: null,
formMap: { formMap: {
addTop: "添加库", addTop: "添加库",
add: "添加货位", add: "添加货位",
edit: "编辑" edit: "编辑"
}, },
@ -826,6 +826,7 @@ export default {
if (formName === "edit") { if (formName === "edit") {
this.subData = data; this.subData = data;
} else if (formName === "add") { } else if (formName === "add") {
this.subData = {};
this.subData.parentId = data.code; this.subData.parentId = data.code;
} }
; ;
@ -881,6 +882,11 @@ export default {
// //
forSubSubmit() { forSubSubmit() {
if (this.$isBlank(this.subData.name)) {
this.$message.error("分库名称不能为空!");
return;
}
saveSubWarehouse(this.subData, this.subFromName).then((response) => { saveSubWarehouse(this.subData, this.subFromName).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.loadSubData(this.subData.parentId); this.loadSubData(this.subData.parentId);
@ -1022,7 +1028,6 @@ export default {
if (response.code != 20000) { if (response.code != 20000) {
this.$message.error(response.message); this.$message.error(response.message);
} else { } else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data); this.$message.success(response.data);
this.getList(); this.getList();
} }

@ -72,9 +72,6 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item prop="locStorageCode"> <el-form-item prop="locStorageCode">
<!--<el-select v-model="formData.billType" style="width: 100%" placeholder="业务类型" :disabled="true">-->
<!--<el-option label="送货单" value="deliveryNote"></el-option>-->
<!--</el-select>-->
<el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" @change="locCHange"> <el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" @change="locCHange">
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
@ -99,7 +96,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="query-form-item" prop="fromCorp" <el-form-item class="query-form-item" prop="fromCorp"
v-if="curAction.corpType ==0 || curAction.corpType == 3 || (curAction.corpType == 2 && !curAction.genUnit)"> v-if="curAction.corpType ==0 ">
<el-select <el-select
v-model="formData.fromCorp" v-model="formData.fromCorp"
filterable filterable
@ -143,19 +140,53 @@
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="formData.fromSubInvCode" placeholder="请选择分库" clearable="true"
>
<el-option
v-for="item in fromSubStorageOptions"
:key="item.code"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
<!--<span style="float: right; color: #8492a6; font-size: 13px">{{ item.action }}</span>-->
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item" prop="fromCorp" <el-form-item class="query-form-item" prop="fromCorp"
v-if="curAction.corpType ==2 && curAction.genUnit"> v-if="curAction.corpType ==2">
<el-input v-model="formData.fromCorp" auto-complete="off" <el-input v-model="formData.fromCorp" auto-complete="off"
clearable clearable
placeholder="请输入病人住院号" placeholder="请输入病人住院号"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3">
<div class="ao-text">
<span>当前分库</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="invWarehouseCode">
<el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息"
>
<el-option
v-for="item in subInvList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-table v-loading="detailLoading" <el-table v-loading="detailLoading"
:data="detailList" :data="detailList"
@selection-change="changeFun" @selection-change="changeFun"
@ -184,7 +215,6 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</template> </template>
@ -194,6 +224,7 @@ import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {parseTime} from "@/filtres"; import {parseTime} from "@/filtres";
import {getLocalJoinByUser} from "@/api/basic/busLocalType"; import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {stockOrderChange, stockOrderDetail} from "@/api/inout/stockOrder"; import {stockOrderChange, stockOrderDetail} from "@/api/inout/stockOrder";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
export default { export default {
name: "DialogcChangeNewOrder", name: "DialogcChangeNewOrder",
@ -219,14 +250,23 @@ export default {
actDate: new Date(), actDate: new Date(),
action: null, action: null,
locStorageCode: null, locStorageCode: null,
fromSubInvCode: null,
invWarehouseCode: null,
mainAction: null
}, },
fromStorageOptions: [], fromStorageOptions: [],
fromSubStorageOptions: [],
curAction: { curAction: {
corpType: 0, corpType: 0,
genUnit: false, genUnit: false,
}, },
busTypes: [], busTypes: [],
fromOptions: [], fromOptions: [],
loading: false,
detailList: [],
storageList: [],
detailLoading: false,
subInvList: [],
} }
}, },
@ -245,16 +285,38 @@ export default {
this.$message.error('当前往来单位不能为空'); this.$message.error('当前往来单位不能为空');
return; return;
} }
if (this.detailList.length == 0) {
this.$message.error("产品列表不能为空");
return;
}
let products = [];
this.detailList.forEach(item => {
let product = {
relId: item.relId,
batchNo: item.batchNo
};
products.push(product);
});
this.busTypes.forEach(item => {
if (item.action === this.formData.action) {
this.formData.mainAction = item.mainAction;
}
})
let tQuery = { let tQuery = {
stockOrderId: this.curRow.id, stockOrderId: this.curRow.id,
locStorageCode: this.formData.locStorageCode, locStorageCode: this.formData.locStorageCode,
action: this.formData.action, action: this.formData.action,
mainAction: this.formData.mainAction,
fromCorp: this.formData.fromCorp, fromCorp: this.formData.fromCorp,
fromCorpId: this.formData.fromCorpId, fromCorpId: this.formData.fromCorpId,
} invWarehouseCode: this.formData.invWarehouseCode,
fromSubInvCode: this.formData.fromSubInvCode,
products: products
};
stockOrderChange(tQuery) stockOrderChange(tQuery)
.then((response) => { .then((response) => {
console.log(response)
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.closeDialog(); this.closeDialog();
@ -267,7 +329,26 @@ export default {
locCHange() { locCHange() {
if (this.$isNotBlank(this.formData.invWarehouseCode)) {
this.formData.invWarehouseCode = "";
}
this.findStorageMethod(); this.findStorageMethod();
this.findSubInvByInv(this.formData.locStorageCode);
},
findSubInvByInv(invCode) {
this.subInvList = [];
let query = {
pcode: invCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
}, },
findStorageMethod(query) { findStorageMethod(query) {
@ -284,9 +365,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
findSubStorageMethod() {
let cQuery = {
pcode: this.formData.fromCorpId,
filter: 2,
};
filterSubByInv(cQuery)
.then((response) => {
this.fromSubStorageOptions = response.data || [];
})
.catch(() => {
});
},
findMethod(query) { findMethod(query) {
console.log(query);
this.fromOptions = []; this.fromOptions = [];
let cQuery = { let cQuery = {
key: query, key: query,
@ -326,10 +417,10 @@ export default {
storageChange(row) { storageChange(row) {
this.formData.fromCorpId = row.code; this.formData.fromCorpId = row.code;
this.formData.fromCorp = row.name; this.formData.fromCorp = row.name;
this.findSubStorageMethod();
}, },
unitChange(row) { unitChange(row) {
console.log(row);
this.formData.fromCorpId = row.erpId; this.formData.fromCorpId = row.erpId;
this.formData.fromCorp = row.name; this.formData.fromCorp = row.name;
}, },
@ -338,6 +429,13 @@ export default {
// this.formData.locStorageCode = this.curAction.storageCode; // this.formData.locStorageCode = this.curAction.storageCode;
this.findMethod(); this.findMethod();
}, },
getActionItem(action) {
for (let i = 0; i < this.busTypes.length; i++) {
if (this.busTypes[i].action === action) {
return this.busTypes[i];
}
}
},
getBusType() { getBusType() {
let query = { let query = {
enabled: true, enabled: true,
@ -381,7 +479,6 @@ export default {
} }
} }
} }
}, },
created() { created() {
if (this.$isBlank(this.formData.corpOrderId)) { if (this.$isBlank(this.formData.corpOrderId)) {

@ -124,6 +124,11 @@
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="采购类型">--> <!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -776,6 +781,16 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -791,6 +806,7 @@ export default {
}, },
invChange() { invChange() {
this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode

@ -102,11 +102,17 @@
<span>{{ getActionName(scope.row.billType) }}</span> <span>{{ getActionName(scope.row.billType) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="采购类型">--> <!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -137,7 +143,6 @@
</el-button </el-button
> >
<el-button <el-button
v-if="isSp ==110"
type="text" type="text"
size="small" size="small"
@click.native="generOrder(scope.row)" @click.native="generOrder(scope.row)"
@ -845,6 +850,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -860,6 +872,7 @@ export default {
}, },
invChange() { invChange() {
this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode

@ -40,6 +40,7 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="billdate"> <el-form-item prop="billdate">
<!-- <el-input v-model="formData.billdate" auto-complete="off"></el-input>-->
<el-date-picker <el-date-picker
v-model="formData.billdate" v-model="formData.billdate"
type="date" type="date"
@ -70,6 +71,7 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="billType"> <el-form-item prop="billType">
<el-select v-model="formData.billType" placeholder="请选择业务类型" disabled> <el-select v-model="formData.billType" placeholder="请选择业务类型" disabled>
<el-option <el-option
v-for="item in busTypes" v-for="item in busTypes"
@ -92,7 +94,9 @@
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="locStorageCode"> <el-form-item prop="locStorageCode">
<el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" disabled> <el-select v-model="formData.locStorageCode" placeholder="当前仓库信息"
@change="invChange"
disabled>
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
:key="item.name" :key="item.name"
@ -103,6 +107,30 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3">
<div class="ao-text">
<span>当前分库</span>
</div>
</el-col>
<el-col :span="7">
<el-form-item prop="invWarehouseCode">
<el-select v-model="formData.invWarehouseCode" disabled
placeholder="当前分库信息"
clearable>
<el-option
v-for="item in subInvList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-card> </el-card>
@ -290,6 +318,7 @@ import {getBasicUnitMaintains, getBasicUnitMaintains2} from "../../api/basic/bas
import {getBussinessType} from "../../api/basic/bussinessType"; import {getBussinessType} from "../../api/basic/bussinessType";
import {getLocalBusType, getLocalJoinBusType} from "../../api/basic/busLocalType"; import {getLocalBusType, getLocalJoinBusType} from "../../api/basic/busLocalType";
import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
export default { export default {
name: "idQuery", name: "idQuery",
@ -366,6 +395,7 @@ export default {
selectInvProductVisible: false, selectInvProductVisible: false,
thisData: {}, thisData: {},
storageList: [], storageList: [],
subInvList: [],
}; };
}, },
components: { components: {
@ -400,11 +430,11 @@ export default {
this.submitFunction(status); this.submitFunction(status);
} else { } else {
for (let i = 0; i < this.codeArray.length; i++) { for (let i = 0; i < this.codeArray.length; i++) {
if (this.$isBlank(this.codeArray[i].batchNo)) { // if (this.$isBlank(this.codeArray[i].batchNo)) {
if (!this.codeArray[i].allowNoBatch) { // if (!this.codeArray[i].allowNoBatch) {
return this.$message.error('批次号不能为空'); // return this.$message.error('');
} // }
} // }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); return this.$message.error('生产日期与失效日期不能全部为空');
} }
@ -629,37 +659,6 @@ export default {
// this.closeConfirmFunction(true); // this.closeConfirmFunction(true);
} }
// if (this.orderEditor) {
// this.getStockOrderDetailList();
// if (this.$isNotBlank(rData)) {
// this.$refs.multipleTable.setCurrentRow(this.codeArray[0]);
// this.currentRow = this.codeArray[0];
// this.selectedIndex = 0;
// this.focusNext('iCount');
// }
// } else {
// if (this.$isNotBlank(rData)) {
// // for (let i = 0; i < this.codeArray.length; i++) {
// // if (this.codeArray[i].productId === rData.productId) {
// // this.$alert("", '', {
// // confirmButtonText: '',
// // type: 'warning',
// // closeOnClickModal: true,
// // callback: action => {
// // this.$refs.inputRef.focus();
// // }
// // });
// // break;
// // }
// // if (i + 1 === this.codeArray.length) {
// // this.codeArray.push(rData);
// // this.$refs.multipleTable.setCurrentRow(this.codeArray[0]);
// // this.currentRow = this.codeArray[0];
// // this.selectedIndex = 0;
// // }
// // }
// }
// }
}, },
rowChange(val) { rowChange(val) {
this.currentRow = val; this.currentRow = val;
@ -668,22 +667,8 @@ export default {
this.focusNext('iCount'); this.focusNext('iCount');
// let sc = this.selectedIndex + 'reCount';
// const _this = this;
// this.$nextTick(() => {
// setTimeout(function() {
// console.log(sc);
// console.log(_this.$refs[sc]);
// console.log(_this.$refs[sc].focus());
// _this.$refs[sc].focus();
// }, 1)
// // this.$refs['inputBatchNoRef'][0].focus()
// })
}, },
iCountChange() { iCountChange() {
// console.log(this.iCount)
// this.currentRow.count = this.iCount;
// this.currentRow.reCount = this.iCount;
}, },
iCountEnterFunction() { iCountEnterFunction() {
if (this.$isNotBlank(this.currentRow)) { if (this.$isNotBlank(this.currentRow)) {
@ -755,7 +740,6 @@ export default {
code: this.code, code: this.code,
}; };
//012693548470801311200226172302271020022632100025
if (this.orderEditor) { if (this.orderEditor) {
addStockOrderDetailFromCode(tQuery).then((response) => { addStockOrderDetailFromCode(tQuery).then((response) => {
this.loading = false; this.loading = false;
@ -838,6 +822,36 @@ export default {
} }
}); });
}, },
// saveCodeArray(index, row) {
// if (this.$isBlank(row.batchNo)) {
// return this.$message.error('');
// }
// if (this.$isBlank(row.productDate)) {
// return this.$message.error('');
// }
// if (this.$isBlank(row.expireDate)) {
// return this.$message.error('');
// }
//
// this.$refs.multipleTable.setCurrentRow();
// this.currentRow = {};
// this.selectedIndex = "";
// this.iCount = 0;
//
// this.detailLoading = true;
// // row.count = row.reCount;
// let tQuery = row;
// uploadStockOrderDetail(tQuery).then((response) => {
// this.detailLoading = false;
// if (response.code === 20000) {
// this.$message.success("");
// this.getStockOrderDetailList();
// this.$refs.inputRef.focus();
// } else {
// this.$message.error(response.message);
// }
// });
// },
deleteCodeArray(index, row) { deleteCodeArray(index, row) {
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", { this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
@ -988,6 +1002,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
invChange() {
// this.formData.invWarehouseCode = "";
this.subInvList = [];
let query = {
pcode: this.formData.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
getActionName(action) { getActionName(action) {
for (let i = 0; i < this.busTypes.length; i++) { for (let i = 0; i < this.busTypes.length; i++) {
if (this.busTypes[i].action === action) { if (this.busTypes[i].action === action) {
@ -1036,6 +1063,9 @@ export default {
this.orderEditor = true; this.orderEditor = true;
this.sValue = this.formData.corpName; this.sValue = this.formData.corpName;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
this.invChange();
} else { } else {
this.formData = { this.formData = {
billdate: "", billdate: "",
@ -1050,6 +1080,8 @@ export default {
this.orderEditor = false; this.orderEditor = false;
this.generateBillNo(); this.generateBillNo();
} }
}, },
}; };
</script> </script>

@ -104,11 +104,18 @@
<span>{{ getActionName(scope.row.billType) }}</span> <span>{{ getActionName(scope.row.billType) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="采购类型">--> <!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -385,10 +392,19 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="productDate"> <el-form-item prop="productDate">
<!-- <el-input v-model="detailFormData.productDate" auto-complete="off"-->
<!-- :disabled="false"></el-input>-->
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="detailFormData.productDate"-->
<!-- placeholder="请选择生产日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
<el-input v-model="detailFormData.productDate" auto-complete="off" <el-input v-model="detailFormData.productDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)" oninput="if(value.length>6)value=value.slice(0,6)"
type="number" type="number"
clearable
:disabled="false"></el-input> :disabled="false"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -407,6 +423,14 @@
:disabled="false"></el-input> :disabled="false"></el-input>
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="detailFormData.expireDate"-->
<!-- placeholder="请选择失效日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -435,6 +459,17 @@
auto-complete="off" :disabled="false"></el-input> auto-complete="off" :disabled="false"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="3">-->
<!-- <div class="ao-text">-->
<!-- <span>扫码数量</span>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="7">-->
<!-- <el-form-item prop="sweepCount">-->
<!-- <el-input v-model="detailFormData.sweepCount" auto-complete="off" :disabled="false"-->
<!-- oninput="value=value.replace(/[^\d]/g,'')" ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -666,7 +701,6 @@ export default {
}, },
distributionForm(index, row) { distributionForm(index, row) {
this.idQuery.id = ''; this.idQuery.id = '';
console.log("row = " + row.id);
if (this.$isNotBlank(row.id)) { if (this.$isNotBlank(row.id)) {
this.idQuery.id = row.id; this.idQuery.id = row.id;
this.idQuery.formData = row; this.idQuery.formData = row;
@ -912,6 +946,14 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -927,6 +969,7 @@ export default {
}, },
invChange() { invChange() {
this.subInvList = []; this.subInvList = [];
this.query.invWarehouseCode = "";
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode
}; };

@ -118,6 +118,12 @@
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="采购类别" width="150">--> <!-- <el-table-column label="采购类别" width="150">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -861,6 +867,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getBusType() { getBusType() {
let query = { let query = {
enabled: true, enabled: true,
@ -927,6 +940,7 @@ export default {
}); });
}, },
invChange() { invChange() {
this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode

@ -171,24 +171,37 @@
</el-col> </el-col>
<el-col :span="3">
<div class="ao-text">
<span>当前分库</span>
</div>
</el-col>
<el-col :span="7">
<el-form-item prop="invWarehouseCode">
<el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息"
clearable>
<el-option
v-for="item in subInvList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</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>
</div> </div>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<!-- <el-form-item prop="type">-->
<!-- <el-select v-model="formData.type" style="width: 100%" placeholder="采购类型">-->
<!-- <el-option label="预入库" value="1"></el-option>-->
<!-- <el-option label="普通采购" value="2"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- <el-form-item prop="type">-->
<!-- </el-form-item>-->
<!-- <el-radio-group v-model="formData.noInvOut" style="margin-right: 20px;margin-left: 20px">-->
<!-- <el-radio-button :label="true" size="mini">允许</el-radio-button>-->
<!-- <el-radio-button :label="false" size="mini">禁用</el-radio-button>-->
<!-- </el-radio-group>-->
<el-form-item prop="type" style="margin-right: 20px;" <el-form-item prop="type" style="margin-right: 20px;"
v-if="!(curAction.mainAction=='WareHouseIn' && curAction.corpType == 0)"> v-if="!(curAction.mainAction=='WareHouseIn' && curAction.corpType == 0)">
<el-checkbox v-model="formData.noInvOut"></el-checkbox> <el-checkbox v-model="formData.noInvOut"></el-checkbox>
@ -196,53 +209,9 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: -10px;">
</el-row>
<!-- <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="type">-->
<!-- <el-select v-model="formData.type" style="width: 100%" placeholder="采购类型">-->
<!-- <el-option label="预入库" value="1"></el-option>-->
<!-- <el-option label="普通采购" value="2"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
</el-card> </el-card>
<el-card> <el-card>
<!-- <el-row :gutter="20" style="padding-bottom: 10px; margin-top: -10px">-->
<!-- <el-col :span="20">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- size="small"-->
<!-- @click.native.stop="addCode()"-->
<!-- style="display: flex; height: 31px; margin-left: auto; margin-right: 0;"-->
<!-- :loading="loading"-->
<!-- >产品录入-->
<!-- </el-button-->
<!-- >-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-button-group style="display: flex">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- size="small"-->
<!-- @click.native.stop="addCode()"-->
<!-- style="margin: 0px 60px 10px auto; height: 35px"-->
<!-- :loading="loading"-->
<!-- >产品录入-->
<!-- </el-button-->
<!-- >-->
<!-- </el-button-group>-->
<el-button-group style="display: flex"> <el-button-group style="display: flex">
<el-button <el-button
type="primary" type="primary"
@ -255,47 +224,6 @@
> >
</el-button-group> </el-button-group>
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="3">-->
<!-- <div class="ao-text">-->
<!-- <span>扫码录入</span>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="10">-->
<!-- <el-form-item prop="code">-->
<!-- &lt;!&ndash; @keyup.native.enter="focusNext('iCount')" @focus="getInputFocus($event)"-->
<!-- @keypress.enter.native="selectProductFunction($event)"-->
<!-- &ndash;&gt;-->
<!-- <el-input-->
<!-- @keyup.enter.native="selectProductFunction($event)"-->
<!-- v-model="code"-->
<!-- auto-complete="off"-->
<!-- ref='inputRef'-->
<!-- @focus="getInputFocus($event)"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- &lt;!&ndash; <el-col :span="3">&ndash;&gt;-->
<!-- &lt;!&ndash; <div class="ao-text">&ndash;&gt;-->
<!-- &lt;!&ndash; <span>数量</span>&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- &lt;!&ndash; </el-col>&ndash;&gt;-->
<!-- &lt;!&ndash; <el-col :span="4">&ndash;&gt;-->
<!-- &lt;!&ndash; <el-form-item prop="iCount">&ndash;&gt;-->
<!-- &lt;!&ndash; &lt;!&ndash; @keypress.enter.native="addCode()"&ndash;&gt;&ndash;&gt;-->
<!-- &lt;!&ndash; <el-input v-model="iCount" auto-complete="off" ref="iCount"&ndash;&gt;-->
<!-- &lt;!&ndash; @keypress.enter.native="iCountEnterFunction()"&ndash;&gt;-->
<!-- &lt;!&ndash; @focus="getInputFocus($event)"&ndash;&gt;-->
<!-- &lt;!&ndash; @input="iCountChange"&ndash;&gt;-->
<!-- &lt;!&ndash; oninput="value=value.replace(/[^\d]/g,'')"></el-input>&ndash;&gt;-->
<!-- &lt;!&ndash; </el-form-item>&ndash;&gt;-->
<!-- &lt;!&ndash; </el-col>&ndash;&gt;-->
<!-- </el-row>-->
<!-- highlight-current-row-->
<!-- @current-change="rowChange"-->
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" <el-table v-loading="loading" :data="codeArray" style="width: 100%;"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
max-height="300" height="300" ref="multipleTable"> max-height="300" height="300" ref="multipleTable">
@ -324,46 +252,22 @@
</el-table-column> </el-table-column>
<el-table-column width="180" label="生产日期(yyMMdd)"> <el-table-column width="180" label="生产日期(yyMMdd)">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-input size="small" v-model="scope.row.productDate"-->
<!-- :disabled="scope.row.index !== selectedIndex"-->
<!-- placeholder="请输入生产日期" style="width: 80%"></el-input>-->
<el-input v-model="scope.row.productDate" auto-complete="off" <el-input v-model="scope.row.productDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)" oninput="if(value.length>6)value=value.slice(0,6)"
:disabled="scope.row.index !== selectedIndex" :disabled="scope.row.index !== selectedIndex"
type="number" type="number"
></el-input> ></el-input>
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="scope.row.productDate"-->
<!-- :disabled="scope.row.index !== selectedIndex"-->
<!-- placeholder="请选择生产日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="180" label="失效日期(yyMMdd)"> <el-table-column width="180" label="失效日期(yyMMdd)">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-input size="small" v-model="scope.row.expireDate"-->
<!-- :disabled="scope.row.index !== selectedIndex"-->
<!-- placeholder="请输入失效日期" style="width: 80%"></el-input>-->
<el-input v-model="scope.row.expireDate" auto-complete="off" <el-input v-model="scope.row.expireDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)" oninput="if(value.length>6)value=value.slice(0,6)"
:disabled="scope.row.index !== selectedIndex" :disabled="scope.row.index !== selectedIndex"
type="number" type="number"
></el-input> ></el-input>
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="scope.row.expireDate"-->
<!-- :disabled="scope.row.index !== selectedIndex"-->
<!-- placeholder="请选择失效日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="150" label="单据数量"> <el-table-column width="150" label="单据数量">
@ -376,16 +280,6 @@
oninput="value=value.replace(/[^\d]/g,'')"></el-input> oninput="value=value.replace(/[^\d]/g,'')"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column width="150" label="实际数量">-->
<!-- <template slot-scope="scope">-->
<!-- <el-input size="small" v-model="scope.row.reCount"-->
<!-- placeholder="请输入数量" style="width: 80%"-->
<!-- type='number'-->
<!-- @change="tableCountChange(scope.row)"-->
<!-- :disabled="scope.row.index !== selectedIndex"-->
<!-- oninput="value=value.replace(/[^\d]/g,'')"></el-input>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column width="150" label="价格"> <el-table-column width="150" label="价格">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input size="small" v-model="scope.row.price" <el-input size="small" v-model="scope.row.price"
@ -396,11 +290,6 @@
</template> </template>
</el-table-column> </el-table-column>
<!--<el-table-column width="150"-->
<!--label="单据数量"-->
<!--prop="count"-->
<!--show-overflow-tooltip-->
<!--&gt;</el-table-column>-->
<el-table-column width="150" <el-table-column width="150"
label="注册/备案凭证号" label="注册/备案凭证号"
prop="zczbhhzbapzbh" prop="zczbhhzbapzbh"
@ -424,16 +313,6 @@
>编辑 >编辑
</el-button </el-button
> >
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- v-if="orderEditor && scope.row.index === selectedIndex"-->
<!-- :disabled="scope.row.index !== selectedIndex"-->
<!-- @click.stop="true"-->
<!-- @click.native="saveCodeArray(scope.$index, scope.row)"-->
<!-- >保存-->
<!-- </el-button-->
<!-- >-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -521,6 +400,7 @@ import {getBussinessType} from "../../api/basic/bussinessType";
import {getLocalBusType, getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {getLocalBusType, getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType";
import {filterAll, filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAll, filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehouse";
import dialogInvProduct from "../inventory/DialogInvProduct" import dialogInvProduct from "../inventory/DialogInvProduct"
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
export default { export default {
name: "idQuery", name: "idQuery",
@ -546,7 +426,7 @@ export default {
page: 1, page: 1,
limit: 10, limit: 10,
}, },
formData: {noInvOut: false, locStorageCode: null}, formData: {noInvOut: false, locStorageCode: null, invWarehouseCode: null},
formRules: { formRules: {
corpName: [ corpName: [
{required: true, message: "请输入供应商", trigger: "blur"} {required: true, message: "请输入供应商", trigger: "blur"}
@ -603,6 +483,7 @@ export default {
thisData: {}, thisData: {},
storageList: [], storageList: [],
invQueryData: {}, invQueryData: {},
subInvList: [],
}; };
}, },
components: { components: {
@ -632,20 +513,27 @@ export default {
if (!this.$isBlank(this.codeArray[i].expireDate) && this.codeArray[i].expireDate.length != 6) { if (!this.$isBlank(this.codeArray[i].expireDate) && this.codeArray[i].expireDate.length != 6) {
return this.$message.error('失效日期格式错误'); return this.$message.error('失效日期格式错误');
} }
} }
if (status === '3') { if (status === '3') {
for (let i = 0; i < this.codeArray.length; i++) { for (let i = 0; i < this.codeArray.length; i++) {
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") { if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") {
return this.$message.error('单据数量不能为0'); return this.$message.error('单据数量不能为0');
} }
if (this.$isBlank(this.codeArray[i].batchNo)) { // if (this.$isBlank(this.codeArray[i].batchNo)) {
if (!this.codeArray[i].allowNoBatch) { // if (!this.codeArray[i].allowNoBatch) {
return this.$message.error('批次号不能为空'); // return this.$message.error('');
} // }
} // }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); return this.$message.error('生产日期与失效日期不能全部为空');
} }
// if (this.$isBlank(this.codeArray[i].expireDate)) {
// return this.$message.error('');
// }
} }
} }
if (status === '2') { if (status === '2') {
@ -653,6 +541,14 @@ export default {
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") { if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") {
return this.$message.error('单据数量不能为0'); return this.$message.error('单据数量不能为0');
} }
// if (!this.$isBlank(this.codeArray[i].productDate && this.codeArray[i].productDate.length != 6)) {
// return this.$message.error('');
// }
// if (!this.$isBlank(this.codeArray[i].expireDate && this.codeArray[i].expireDate.length != 6)) {
// return this.$message.error('');
// }
} }
} }
@ -696,6 +592,7 @@ export default {
filterAllByUser() filterAllByUser()
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
this.invChange();
}) })
.catch(() => { .catch(() => {
}); });
@ -1278,8 +1175,24 @@ export default {
this.formData.locStorageCode = item; this.formData.locStorageCode = item;
this.$forceUpdate(); this.$forceUpdate();
this.getBusType(item); this.getBusType(item);
this.invChange();
this.findStorageMethod(); this.findStorageMethod();
} },
invChange() {
if (this.$isNotBlank(this.formData.invWarehouseCode))
this.formData.invWarehouseCode = null;
this.subInvList = [];
let query = {
pcode: this.formData.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
}, },
filters: {}, filters: {},
mounted() { mounted() {
@ -1291,7 +1204,7 @@ export default {
created() { created() {
this.getBusType("NOCODE"); this.getBusType("NOCODE");
this.getStorage(); this.getStorage();
this.formData = {}; this.formData = {noInvOut: false, locStorageCode: null, invWarehouseCode: null};
this.codeArray = []; this.codeArray = [];
this.closeConfirmFunction(false); this.closeConfirmFunction(false);
if (this.$isNotBlank(this.idQuery.id)) { if (this.$isNotBlank(this.idQuery.id)) {

@ -102,11 +102,16 @@
<span>{{ getActionName(scope.row.billType) }}</span> <span>{{ getActionName(scope.row.billType) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="200"> <el-table-column label="操作" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -925,6 +930,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -939,6 +951,7 @@ export default {
}); });
}, },
invChange() { invChange() {
this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode

File diff suppressed because it is too large Load Diff

@ -240,7 +240,7 @@
</el-row> </el-row>
<div style="margin-top: 8px ; color: #F71616;"> <div style="margin-top: 8px ; color: #F71616;">
<span>提示进入系统必须选择您当前所在仓库与分库&nbsp;</span> <span>提示进入系统请先选择您当前所在仓库与分库&nbsp;</span>
</div> </div>
<div style='text-align: center; margin-bottom: 10px;margin-top: 18px ;'> <div style='text-align: center; margin-bottom: 10px;margin-top: 18px ;'>
<el-button type="primary" @click="submitInv"></el-button> <el-button type="primary" @click="submitInv"></el-button>
@ -413,6 +413,9 @@ export default {
}, },
locCHange() { locCHange() {
if(this.$isNotBlank(this.userInfo.locSubInvCode)){
this.userInfo.locSubInvCode = "";
}
this.findSubInvByInv(); this.findSubInvByInv();
}, },
@ -479,6 +482,16 @@ export default {
}, },
submitInv() { submitInv() {
if (this.$isBlank(this.userInfo.locInvCode)) {
this.$message.error("当前仓库不能为空!");
return;
}
if (this.userInfo.customerId == 110) {
if (this.$isBlank(this.userInfo.locSubInvCode)) {
this.$message.error("当前分库不能为空!");
return;
}
}
updateInv(this.userInfo).then((res) => { updateInv(this.userInfo).then((res) => {
if (res.code == 20000) { if (res.code == 20000) {
this.$message.success("设置成功!"); this.$message.success("设置成功!");

@ -27,6 +27,7 @@
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.locStorageCode" placeholder="请选择当前仓库" clearable="true" <el-select v-model="filterQuery.locStorageCode" placeholder="请选择当前仓库" clearable="true"
@change="invChange"
size="mini"> size="mini">
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
@ -37,6 +38,18 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
size="mini">
<el-option
v-for="item in subInvList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button <el-button
@ -68,13 +81,17 @@
</el-table-column> </el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250"> <el-table-column label="往来单位" prop="fromCorp" width="250">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column label="创建时间" prop="actDate" show-overflow-tooltip> <el-table-column label="创建时间" prop="actDate" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
@ -257,6 +274,7 @@ import {getBussinessType} from "../../api/basic/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busLocalType"; import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
const formJson = { const formJson = {
site_id: "", site_id: "",
@ -270,6 +288,8 @@ export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
locStorageCode: null,
invWarehouseCode: null,
id: "", id: "",
mainAction: null, mainAction: null,
action: null, action: null,
@ -309,6 +329,7 @@ export default {
}, },
list: [], list: [],
storageList: [], storageList: [],
subInvList: [],
queryAdIdAsyncLoading: false, queryAdIdAsyncLoading: false,
codeDetailVisible: false, codeDetailVisible: false,
total: 0, total: 0,
@ -510,6 +531,21 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
invChange() {
this.filterQuery.invWarehouseCode = "";
this.subInvList = [];
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
getStorageName(code) { getStorageName(code) {
for (let i = 0; i < this.storageList.length; i++) { for (let i = 0; i < this.storageList.length; i++) {
if (this.storageList[i].code === code) { if (this.storageList[i].code === code) {
@ -517,6 +553,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
addOrders(row) { addOrders(row) {
console.log(row) console.log(row)
this.idQuery.id = ''; this.idQuery.id = '';

@ -117,11 +117,16 @@
</el-table-column> </el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250"> <el-table-column label="往来单位" prop="fromCorp" width="250">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="创建时间" label="创建时间"
prop="actDate" prop="actDate"
@ -811,6 +816,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
repeatPrintCheckClick(row) { repeatPrintCheckClick(row) {
let tQuery = { let tQuery = {
orderId: row.id, orderId: row.id,
@ -1089,6 +1101,7 @@ export default {
}, },
invChange() { invChange() {
this.subInvList = []; this.subInvList = [];
this.filterQuery.invWarehouseCode = "";
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode
}; };

@ -115,11 +115,16 @@
</el-table-column> </el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250"> <el-table-column label="往来单位" prop="fromCorp" width="250">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="创建时间" label="创建时间"
prop="actDate" prop="actDate"
@ -342,6 +347,7 @@ import {getBussinessType} from "../../api/basic/bussinessType";
import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busLocalType"; import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
const formJson = { const formJson = {
site_id: "", site_id: "",
@ -350,7 +356,6 @@ const formJson = {
ads: [], ads: [],
}; };
export default { export default {
name: "IOCheckWaitOrder",
props: { props: {
isSelect: { isSelect: {
type: Boolean, type: Boolean,
@ -544,6 +549,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
handleErrorDetail(poistion) { handleErrorDetail(poistion) {
var mOrder = this.list[poistion]; var mOrder = this.list[poistion];
this.errorDetail = mOrder.remark; this.errorDetail = mOrder.remark;
@ -644,6 +656,17 @@ export default {
this.curIndex = row.id; this.curIndex = row.id;
// this.dialogTableVisible = true; // this.dialogTableVisible = true;
}, },
getUnitList() {
this.loading = true;
getBasicUnitMaintains(this.unitquery)
.then((response) => {
this.loading = false;
this.unitlist = response.data.list || [];
})
.catch(() => {
this.loading = false;
});
},
intentDetail(row) { intentDetail(row) {
// this.$router.push({ // this.$router.push({
// path: "../inout/detail", // path: "../inout/detail",
@ -831,6 +854,7 @@ export default {
}); });
}, },
invChange() { invChange() {
this.filterQuery.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode

@ -570,6 +570,7 @@ export default {
}, },
invChange() { invChange() {
this.subInvList = []; this.subInvList = [];
this.filterQuery.invWarehouseCode = "";
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode
}; };

@ -114,11 +114,16 @@
</el-table-column> </el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250"> <el-table-column label="往来单位" prop="fromCorp" width="250">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="创建时间" label="创建时间"
prop="actDate" prop="actDate"
@ -617,6 +622,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
handleErrorDetail(poistion) { handleErrorDetail(poistion) {
var mOrder = this.list[poistion]; var mOrder = this.list[poistion];
this.errorDetail = mOrder.remark; this.errorDetail = mOrder.remark;
@ -888,6 +900,7 @@ export default {
} }
}, },
invChange() { invChange() {
this.filterQuery.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode

@ -25,10 +25,12 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col> <el-col>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.locStorageCode" placeholder="请选择当前仓库" clearable="true" <el-select v-model="filterQuery.locStorageCode" placeholder="请选择当前仓库" clearable="true"
@change="invChange"
size="mini"> size="mini">
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
@ -51,6 +53,8 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button <el-button
@ -94,33 +98,20 @@
</el-table-column> </el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="220"> <el-table-column label="往来单位" prop="fromCorp" width="220">
</el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.fromCorp }} <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
<!-- <p v-if="scope.row.fromCorp == null">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- size="mini"-->
<!-- @click.native.stop="handleUnitClick(scope.row)"-->
<!-- >选择往来单位-->
<!-- </el-button-->
<!-- >-->
<!-- </p>-->
<!-- <p v-if="scope.row.fromCorp !== null">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- size="mini"-->
<!-- @click.native.stop="handleUnitClick(scope.row)"-->
<!-- >{{ scope.row.fromCorp }}-->
<!-- </el-button-->
<!-- >-->
<!-- </p>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150">
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="actDate" show-overflow-tooltip> <el-table-column label="创建时间" prop="actDate" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
@ -140,29 +131,10 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="addOrders(scope.row)" @click.native.stop="addOrders(scope.row)"
>编辑 >编辑
</el-button </el-button
> >
<!-- v-if="scope.row.status === -1"-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- v-if="scope.row.status !== -1"-->
<!-- @click.native.stop="intentDetail(scope.row)"-->
<!-- >详情-->
<!-- </el-button-->
<!-- >-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- v-if="scope.row.status !== -1"-->
<!-- @click.native.stop="handleErrorDetail(scope.$index)"-->
<!-- >错误详情-->
<!-- </el-button-->
<!-- >-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -305,7 +277,7 @@ import {
} from "../../api/inout/order"; } from "../../api/inout/order";
import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain" import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain"
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import codeDetail from "./IONewCode"; import codeDetail from "./errorCode";
import ioErrorOrder from "./IOErrorOrder"; import ioErrorOrder from "./IOErrorOrder";
import addOrder from "./IOAddOrder"; import addOrder from "./IOAddOrder";
@ -355,7 +327,6 @@ export default {
idQuery: { idQuery: {
id: "", id: "",
}, },
uploadData: {},
storageList: [], storageList: [],
subInvList: [], subInvList: [],
errOrderVisible: false, errOrderVisible: false,
@ -395,7 +366,6 @@ export default {
formData: formJson, formData: formJson,
deleteLoading: false, deleteLoading: false,
busTypes: [], busTypes: [],
uploadFileUrl: null,
}; };
}, },
components: { components: {
@ -461,7 +431,6 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.filterQuery.locStorageCode = this.storageList[0].code;
this.invChange(); this.invChange();
this.getList(); this.getList();
} }
@ -476,11 +445,19 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
addOrders(row) { addOrders(row) {
console.log(row) console.log(row)
this.idQuery.id = ''; this.idQuery.id = '';
this.idQuery.actDate = ''; this.idQuery.actDate = '';
this.idQuery.corpOrderId = ''; this.idQuery.corpOrderId = '';
this.idQuery.outChangeEnable = row.outChangeEnable; this.idQuery.outChangeEnable = row.outChangeEnable;
if (row.id !== null && row.id !== undefined && row.id !== '') { if (row.id !== null && row.id !== undefined && row.id !== '') {
this.idQuery.id = row.id; this.idQuery.id = row.id;
@ -488,6 +465,10 @@ export default {
this.idQuery.corpOrderId = row.corpOrderId; this.idQuery.corpOrderId = row.corpOrderId;
this.idQuery.billType = row.action; this.idQuery.billType = row.action;
this.idQuery.locStorageCode = row.locStorageCode; this.idQuery.locStorageCode = row.locStorageCode;
this.idQuery.invWarehouseCode = row.invWarehouseCode;
this.idQuery.fromSubInvCode = row.fromSubInvCode;
this.idQuery.preCheck = row.preCheck; this.idQuery.preCheck = row.preCheck;
} }
this.addOrderVisible = true; this.addOrderVisible = true;
@ -501,6 +482,7 @@ export default {
}, },
closeDialog() { closeDialog() {
this.addOrderVisible = false; this.addOrderVisible = false;
this.addHosOrderVisible = false;
this.getList(); this.getList();
}, },
getUnitList() { getUnitList() {
@ -662,9 +644,11 @@ export default {
intentDetail(row) { intentDetail(row) {
this.codeDetailVisible = true; this.codeDetailVisible = true;
this.idQuery.id = row.id; this.idQuery.id = row.id;
}, },
invChange() { invChange() {
this.subInvList = []; this.subInvList = [];
this.filterQuery.invWarehouseCode = "";
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode
}; };

@ -173,6 +173,8 @@ export default {
customerId: null, customerId: null,
page: 1, page: 1,
limit: 20, limit: 20,
invStorageCode: null,
invWarehouseCode: null,
}, },
codeArry: [], codeArry: [],
total: 0, total: 0,
@ -224,6 +226,7 @@ export default {
this.query.batchNo = this.idQuery.batchNo; this.query.batchNo = this.idQuery.batchNo;
this.query.supId = this.idQuery.supId; this.query.supId = this.idQuery.supId;
this.query.invStorageCode = this.idQuery.invStorageCode; this.query.invStorageCode = this.idQuery.invStorageCode;
this.query.invWarehouseCode = this.idQuery.invWarehouseCode;
filterDetailProducts(this.query) // filterDetailProducts(this.query) //
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -51,7 +51,7 @@
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.invStorageCode" placeholder="请选择当前仓库" clearable="true" <el-select v-model="filterQuery.invStorageCode" placeholder="请选择当前仓库" clearable="true"
size="mini"> @change="invChange" size="mini">
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
:key="item.name" :key="item.name"
@ -61,6 +61,18 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
size="mini">
<el-option
v-for="item in subInvList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button <el-button
@ -135,12 +147,14 @@ import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType"; import {getBussinessType} from "../../api/basic/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {filterAllByUser, filterUplLocInv} from "@/api/basic/invWarehouse"; import {filterAllByUser, filterUplLocInv} from "@/api/basic/invWarehouse";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
invWarehouseCode: null,
cpmctymc: null, cpmctymc: null,
nameCode: null, nameCode: null,
relIdFk: null, relIdFk: null,
@ -175,6 +189,7 @@ export default {
fromOptions: [], fromOptions: [],
storageOptions: [], storageOptions: [],
storageList: [], storageList: [],
subInvList: [],
}; };
}, },
components: { components: {
@ -244,7 +259,6 @@ export default {
this.filterQuery.customerId = store.getters.customerId; this.filterQuery.customerId = store.getters.customerId;
stockStatistics(this.filterQuery) stockStatistics(this.filterQuery)
.then((response) => { .then((response) => {
console.log(response)
this.showSup = response.data.showSup; this.showSup = response.data.showSup;
this.loading = false; this.loading = false;
this.list = response.data.list || []; this.list = response.data.list || [];
@ -324,6 +338,20 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
invChange() {
// this.$set(this.filterQuery, "entrustUser", "");
this.filterQuery.invWarehouseCode = "";
this.subInvList = [];
let query = {
pcode: this.filterQuery.invStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
}, },
filters: { filters: {
statusFilterType(status) { statusFilterType(status) {

@ -58,6 +58,10 @@
>查询 >查询
</el-button </el-button
> >
<el-button type="primary" icon="search" @click="clearAll"
>清空库存
</el-button
>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
@ -88,6 +92,8 @@
width="120"></el-table-column> width="120"></el-table-column>
<el-table-column label="仓库" prop="invStorageName" v-if="showSup" <el-table-column label="仓库" prop="invStorageName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="分库" prop="invSubStorageName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -133,7 +139,7 @@
<script> <script>
import { import {
filterProducts, filterProducts,
deleteProducts, deleteProducts,clearAllProducts
} from "../../api/inventory/InvPreInProducts"; } from "../../api/inventory/InvPreInProducts";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import codeDetail from "./InvPreInProductsDetail"; import codeDetail from "./InvPreInProductsDetail";
@ -270,6 +276,36 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
clearAll(){
this.$confirm("此操作将永久清空所有预验收库存信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let query={id:1};
clearAllProducts(query)
.then((response) => {
if (response.code == 20000) {
this.getList();
this.$message({
type: "success",
message: "删除成功!",
});
} else {
this.$message.error(response.message);
}
})
})
.catch(() => {
});
},
findMethod(query) { findMethod(query) {
console.log(query); console.log(query);
this.fromOptions = []; this.fromOptions = [];
@ -284,6 +320,7 @@ export default {
this.fromOptions = response.data.page.list || []; this.fromOptions = response.data.page.list || [];
}) })
.catch(() => { .catch(() => {
this.fromOptions = [];
this.loading = false; this.loading = false;
}); });
}, },

@ -100,6 +100,8 @@
width="120"></el-table-column> width="120"></el-table-column>
<el-table-column label="仓库" prop="invStorageName" v-if="showSup" <el-table-column label="仓库" prop="invStorageName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="分库" prop="invSubStorageName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -304,10 +306,11 @@ export default {
}); });
// filterCustomers(cQuery) // filterCustomers(cQuery)
// .then((response) => { // .then((response) => {
// this.fromOptions = response.data.list || []; // this.loading = false;
// this.fromOptions = response.data.page.list || [];
// }) // })
// .catch(() => { // .catch(() => {
// this.fromOptions = []; // this.loading = false;
// }); // });
}, },

Loading…
Cancel
Save