1.修改部分bug

wms_pzh
x_z 3 years ago
parent 6d1ead1cd7
commit 545e8b2069

@ -256,7 +256,7 @@
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.scanPreIn" :disabled="inputQuery.corpType!='2'"> <el-checkbox v-model="inputQuery.scanPreIn" :disabled="inputQuery.corpType!='2'">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.vailInv" :disabled="inputQuery.mainAction!='WareHouseOut'"> <el-checkbox v-model="inputQuery.vailInv" :disabled="inputQuery.mainAction!='WareHouseOut'">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.codeFillCheck">UDI <el-checkbox v-model="inputQuery.codeFillCheck">UDI
</el-checkbox> </el-checkbox>
@ -579,7 +579,7 @@ export default {
, ,
// //
getOrderType() { getOrderType() {
this.orderTypeList = []; this.orderTypeList = [];
let query = { let query = {
mainAction: this.inputQuery.mainAction, mainAction: this.inputQuery.mainAction,

@ -353,7 +353,7 @@
</div> </div>
</el-dialog> </el-dialog>
<!--添加单据类型弹窗----> <!--添加单据类型弹窗---->
<!--添加单据类型弹窗--> <!--添加单据类型弹窗-->
<el-dialog <el-dialog
@ -388,7 +388,7 @@
</el-button </el-button
> >
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -1103,9 +1103,9 @@ export default {
} }
this.$message.success("操作成功"); this.$message.success("操作成功");
this.formVisible = false; this.formVisible = false;
if (this.formName !== "edit") { if (this.formName !== "edit") {
if (response.data && response.data.id) { if (response.data && response.data.id) {
data.id = response.data.id; data.id = response.data.id;
if (this.pidData) { if (this.pidData) {
@ -1144,7 +1144,6 @@ export default {
this.subFormVisible = false; this.subFormVisible = false;
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
this.subFormVisible = false;
} }
}).catch(() => { }).catch(() => {
this.subFormVisible = false; this.subFormVisible = false;
@ -1309,6 +1308,7 @@ export default {
}, },
changeLevel(row) { changeLevel(row) {
this.formData.pcode = null; this.formData.pcode = null;
this.formData.spUse = false;
//TODO //TODO
this.getParentInv(this.formData.level); this.getParentInv(this.formData.level);
}, },
@ -1439,7 +1439,7 @@ export default {
var action=obj.toString(); var action=obj.toString();
this.bussinessTypeQuery.ids=action; this.bussinessTypeQuery.ids=action;
} }
this.bussinessTypeQuery.code=this.busQuery.code; this.bussinessTypeQuery.code=this.busQuery.code;
getJoinBussinessType(this.bussinessTypeQuery).then((res) => { getJoinBussinessType(this.bussinessTypeQuery).then((res) => {
this.selectBussinessTypeList = []; this.selectBussinessTypeList = [];
@ -1540,12 +1540,16 @@ export default {
this.getBussinessType(1,action); this.getBussinessType(1,action);
}, },
selsectBussinessType(row){ selsectBussinessType(row){
if (this.currentRow.id !== row.id) {
this.$message.error("请先选择需要操作的分库!");
return;
}
var busQuery = { var busQuery = {
code: this.currentCode, code: this.currentCode,
page: 1, page: 1,
limit: 50 limit: 50
} };
warehouseBussinessTypeList(busQuery).then((res) => { warehouseBussinessTypeList(busQuery).then((res) => {
this.userBussinessTypeList = res.data.list; this.userBussinessTypeList = res.data.list;
}).catch((error) => { }).catch((error) => {
@ -1596,7 +1600,7 @@ export default {
limit: 50 limit: 50
} }
warehouseBussinessTypeList(busQuery).then((res) => { warehouseBussinessTypeList(busQuery).then((res) => {
this.userBussinessTypeList = res.data.list || []; this.userBussinessTypeList = res.data.list || [];
}).catch((error) => { }).catch((error) => {
}); });

@ -651,7 +651,7 @@ export default {
code: this.formData.code.trim(), code: this.formData.code.trim(),
} }
enterCodeWeb(tQuery).then((response) => { enterCodeWeb(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.$refs.inputRef.focus(); this.$refs.inputRef.focus();
this.$refs.inputRef.select(); this.$refs.inputRef.select();
@ -700,7 +700,7 @@ export default {
}); });
}, },
addCode(event) { addCode(event) {
this.originCode = ""; this.originCode = "";
this.sictomText = ""; this.sictomText = "";
this.formData.corpOrderId = this.formData.corpOrderId.trim(); this.formData.corpOrderId = this.formData.corpOrderId.trim();
@ -765,7 +765,7 @@ export default {
}, },
addCodeSubmit(tQuery) { addCodeSubmit(tQuery) {
addOrderWeb(tQuery).then((response) => { addOrderWeb(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.idQuery.id = response.data.orderId; this.idQuery.id = response.data.orderId;
@ -834,10 +834,14 @@ export default {
} else { } else {
this.$message({ this.$alert(response.message, '提示', {
type: 'error', confirmButtonText: '确定',
message: "提交失败!" + this.editTitle, type: 'warning',
customClass: 'messageIndex' closeOnClickModal: true,
callback: action => {
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
}
}); });
} }
} }
@ -930,7 +934,7 @@ export default {
} }
getLocalJoinByUser(query) getLocalJoinByUser(query)
.then((response) => { .then((response) => {
this.busTypes = response.data.list || []; this.busTypes = response.data.list || [];
if (this.formData.action != null) { if (this.formData.action != null) {
this.curAction = this.getActionItem(this.formData.action); this.curAction = this.getActionItem(this.formData.action);
@ -968,7 +972,7 @@ export default {
} }
, ,
findMethod(query) { findMethod(query) {
this.fromOptions = []; this.fromOptions = [];
let cQuery = { let cQuery = {
key: query, key: query,
@ -1099,7 +1103,7 @@ export default {
} }
, ,
actionChange(item) { actionChange(item) {
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
this.findMethod(); this.findMethod();
@ -1223,11 +1227,11 @@ export default {
} }
, ,
created() { created() {
this.formData.code = ''; this.formData.code = '';
this.formData.actDate = new Date(); this.formData.actDate = new Date();
this.codeArray = []; this.codeArray = [];
this.getStorage(this.formData.action); this.getStorage(this.formData.action);
if (this.$isNotBlank(this.idQuery.id)) { if (this.$isNotBlank(this.idQuery.id)) {

Loading…
Cancel
Save