10/8 界面优化

yanshishuju
wangwei 9 months ago
parent cd3572bcac
commit fb1a5f7f46

@ -648,4 +648,18 @@ export function batchAddCodeByOrderFinish(query) {
});
}
export function upProcessing(query) {
return axios({
url: "/udiwms/inout/order/upProcessing",
method: "post",
data: query
});
}
export function getProcessingOrder(params) {
return axios({
url: "/udiwms/inout/order/getProcessingOrder",
method: "get",
params: params
});
}

@ -372,6 +372,7 @@
</el-form>
</div>
</template>
<script>
@ -537,6 +538,10 @@ export default {
this.formData.workPlaceCode = this.workplaceId
this.checked = false
}
}else {
this.checked = true
this.formData.billNo = null
this.$message.error(res.message)
}
})
},

@ -291,6 +291,7 @@
v-if="chooseDraftOrderVisible"
>
<chooseDraftOrderDialog
ref="chooseDraftOrder"
:rowData="rowData"
:closeChooseDialog="closeChooseDialog"
:handleChoose="handleChoose"
@ -329,8 +330,8 @@ import {
submitOrderWeb,
saveOrderWeb,
enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult, delmitBiz,
batchVailCode, batchAddCode, batchAddCodeByOrderFinish
} from "@/api/inout/order";
batchVailCode, batchAddCode, batchAddCodeByOrderFinish, upProcessing, getProcessingOrder
} from '@/api/inout/order'
import {filterSubAll, findByFrom, findInvByUser} from "@/api/system/invSubWarehouse";
import {parseTime} from "@/utils/coTools";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
@ -1583,6 +1584,7 @@ export default {
if (response.code === 20000) {
this.$message.success("提交成功");
this.successCloseData()
this.result = ""
if (this.closeDialog != undefined) {
this.closeDialog();
}
@ -1616,7 +1618,27 @@ export default {
},
handleChoose(currentRow) {
this.orderQuery = currentRow
this.refreshOrder(this.orderQuery)
//
this.upOrderStatus()
},
upOrderStatus(){
let query = {
billNo : this.orderQuery.billNo
}
upProcessing(query).then(res => {
if (res.code == 20000){
this.chooseDraftOrderVisible = false
this.refreshOrder(this.orderQuery)
}else if (res.code == 501){
this.$message.error("当前单据正在处理中,请重新选择单据")
this.$refs.chooseDraftOrder.getList();
this.chooseDraftOrderVisible = true
//稿
}else {
return this.$message.error("系统繁忙")
}
})
},
//
confirmSelect(row) {
@ -1643,6 +1665,7 @@ export default {
if (response.code === 20000) {
this.$message.success("保存成功")
this.successCloseData()
this.result = ""
} else {
this.$message.error(response.message);
}
@ -2036,6 +2059,22 @@ export default {
if (!isBlank(this.errResult))
this.errVisible = true;
},
getOrder(){
let query = {
workPlaceCode: this.workplaceId
}
getProcessingOrder(query).then(res => {
if (res.code == 20000){
if (res.data != null){
this.refreshOrder(res.data)
}
}else {
this.$message.error("获取错误")
}
})
}
},
filters: {},
mounted() {
@ -2085,6 +2124,8 @@ export default {
this.workplaceId = this.$route.query.workplaceId
this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId);
this.orderFormData.splitBusType = "YPCF002"
//
this.getOrder()
} else {
if (this.orderQuery.workPlaceCode != null) {
this.orderFormData.workPlaceCode = String(this.orderQuery.workPlaceCode);

@ -860,6 +860,9 @@ export default {
};
this.actDateRange = [];
this.getList();
this.resultDetailList = []
this.apartDetailList = []
this.currentRow.cpmctymc = null
},
onSubmit(_this) {
if (_this == null)
@ -939,7 +942,7 @@ export default {
})
},
onResultSubmit() {
if (isBlank(this.resultQuery.code) || isBlank(this.currentRow.relId) || isBlank(this.currentRow.batchNo)){
if (isBlank(this.resultQuery.code) && isBlank(this.currentRow.relId) && isBlank(this.currentRow.batchNo)){
return this.$message.error("请选择单据")
}
this.resultQuery = {
@ -953,6 +956,9 @@ export default {
this.getResultDetailList()
},
onResultReset() {
if (isBlank(this.resultQuery.code) && isBlank(this.currentRow.relId) && isBlank(this.currentRow.batchNo)){
return this.$message.error("请选择单据")
}
this.resultQuery = {
relId: this.currentRow.relId,
batchNo: this.currentRow.batchNo,
@ -963,6 +969,9 @@ export default {
this.getResultDetailList()
},
onCodeResultSubmit() {
if (isBlank(this.resultQuery.code) && isBlank(this.currentRow.relId) && isBlank(this.currentRow.batchNo)){
return this.$message.error("请选择单据")
}
this.codeQuery = {
code: this.codeQuery.code,
relId: this.currentRow.relId,
@ -974,6 +983,9 @@ export default {
this.getSplitCodeDetail()
},
onCodeResultReset() {
if (isBlank(this.resultQuery.code) && isBlank(this.currentRow.relId) && isBlank(this.currentRow.batchNo)){
return this.$message.error("请选择单据")
}
this.codeQuery = {
relId: this.currentRow.relId,
batchNo: this.currentRow.batchNo,

@ -942,22 +942,37 @@ export default {
})
},
onReset() {
this.filterQuery = {
...this.filterQuery,
statusType: 'draft',
busType: null,
id: "",
billNo: null,
mainAction: null,
statusType: 'draft',
action: null,
page: 1,
limit: 10,
startTime: null,
endTime: null,
keyWords: null,
workPlaceCode:null,
keyWords:null,
busType: null
// invCode: this.$store.getters.locInvCode,
vueType: null,
};
this.splitType = this.$route.query.splitType;
if (this.splitType == "search") {
this.filterQuery.vueType = "splitOrder";
this.filterQuery.statusType = 'split_finish';
} else if (this.splitType == "out") {
this.filterQuery.action = 'SC72197936495755';
this.filterQuery.statusType = 'scan_code';
} else if (this.splitType == "return") {
this.filterQuery.action = 'SC72249388338364';
this.filterQuery.statusType = 'scan_code';
}
this.actDateRange = [];
this.getList();
this.currentRow.billNo = ""
this.codeDetailList = []
this.resultDetailList = []
},
@ -1207,7 +1222,6 @@ export default {
limit: 10
};
this.getBizDetailList();
},
onBizSubmit() {
if (isBlank(this.currentRow.billNo)){

@ -770,7 +770,7 @@ export default {
startTime: null,
endTime: null,
keyWords: null,
invCode: this.$store.getters.locInvCode,
// invCode: this.$store.getters.locInvCode,
vueType: null,
},
fromOptions: [],
@ -898,19 +898,18 @@ export default {
methods: {
onReset() {
this.filterQuery = {
...this.filterQuery,
id: "",
billNo: null,
mainAction: null,
action: null,
statusType: null,
statusType: "scan_code",
page: 1,
limit: 10,
startTime: null,
endTime: null,
invCode: this.$store.getters.locInvCode,
keyWords: null
keyWords: null,
// invCode: this.$store.getters.locInvCode,
vueType: null,
};
this.actDateRange = [];
this.getList();
@ -976,6 +975,17 @@ export default {
this.loading = true;
this.filterQuery.workPlaceCode = this.rowData.workPlaceCode
this.filterQuery.fifoSplit = this.rowData.fifoSplit
this.splitType = this.$route.query.splitType;
if (this.splitType == "search") {
this.filterQuery.vueType = "splitOrder";
this.filterQuery.statusType = 'split_finish';
} else if (this.splitType == "out") {
this.filterQuery.action = 'SC72197936495755';
this.filterQuery.statusType = 'scan_code';
} else if (this.splitType == "return") {
this.filterQuery.action = 'SC72249388338364';
this.filterQuery.statusType = 'scan_code';
}
getOrderList(this.filterQuery)
.then((response) => {
this.loading = false;
@ -1201,7 +1211,7 @@ export default {
if (this.currentRow.billNo == null) {
return this.$message.error("请选择单据")
}
this.closeChooseDialog()
// this.closeChooseDialog()
this.handleChoose(this.currentRow)
},
//

@ -53,6 +53,15 @@
:disabled="editData.serialNo!=null && editData.serialNo!='' "></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="count" label="实际数量">
<el-input v-model="editData.reCount" auto-complete="off"
type="number"
min="1"
disabled
:disabled="editData.reCount!=null && editData.reCount!='' "></el-input>
</el-form-item>
</el-col>
<!--<el-col :span="11">-->
<!-- <el-form-item>-->

Loading…
Cancel
Save