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

@ -291,6 +291,7 @@
v-if="chooseDraftOrderVisible" v-if="chooseDraftOrderVisible"
> >
<chooseDraftOrderDialog <chooseDraftOrderDialog
ref="chooseDraftOrder"
:rowData="rowData" :rowData="rowData"
:closeChooseDialog="closeChooseDialog" :closeChooseDialog="closeChooseDialog"
:handleChoose="handleChoose" :handleChoose="handleChoose"
@ -329,8 +330,8 @@ import {
submitOrderWeb, submitOrderWeb,
saveOrderWeb, saveOrderWeb,
enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult, delmitBiz, enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, submitCodeResult, submitCheckResult, delmitBiz,
batchVailCode, batchAddCode, batchAddCodeByOrderFinish batchVailCode, batchAddCode, batchAddCodeByOrderFinish, upProcessing, getProcessingOrder
} from "@/api/inout/order"; } from '@/api/inout/order'
import {filterSubAll, findByFrom, findInvByUser} from "@/api/system/invSubWarehouse"; import {filterSubAll, findByFrom, findInvByUser} from "@/api/system/invSubWarehouse";
import {parseTime} from "@/utils/coTools"; import {parseTime} from "@/utils/coTools";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
@ -1583,6 +1584,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.successCloseData() this.successCloseData()
this.result = ""
if (this.closeDialog != undefined) { if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
@ -1616,7 +1618,27 @@ export default {
}, },
handleChoose(currentRow) { handleChoose(currentRow) {
this.orderQuery = 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) { confirmSelect(row) {
@ -1643,6 +1665,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("保存成功") this.$message.success("保存成功")
this.successCloseData() this.successCloseData()
this.result = ""
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -2036,6 +2059,22 @@ export default {
if (!isBlank(this.errResult)) if (!isBlank(this.errResult))
this.errVisible = true; 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: {}, filters: {},
mounted() { mounted() {
@ -2085,6 +2124,8 @@ export default {
this.workplaceId = this.$route.query.workplaceId this.workplaceId = this.$route.query.workplaceId
this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId); this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId);
this.orderFormData.splitBusType = "YPCF002" this.orderFormData.splitBusType = "YPCF002"
//
this.getOrder()
} else { } else {
if (this.orderQuery.workPlaceCode != null) { if (this.orderQuery.workPlaceCode != null) {
this.orderFormData.workPlaceCode = String(this.orderQuery.workPlaceCode); this.orderFormData.workPlaceCode = String(this.orderQuery.workPlaceCode);

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

@ -942,22 +942,37 @@ export default {
}) })
}, },
onReset() { onReset() {
this.filterQuery = { this.filterQuery = {
...this.filterQuery, statusType: 'draft',
busType: null,
id: "", id: "",
billNo: null, billNo: null,
mainAction: null, mainAction: null,
statusType: 'draft', action: null,
page: 1, page: 1,
limit: 10, limit: 10,
startTime: null, startTime: null,
endTime: null, endTime: null,
keyWords: null,
workPlaceCode:null, workPlaceCode:null,
keyWords:null, // invCode: this.$store.getters.locInvCode,
busType: null 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.actDateRange = [];
this.getList(); this.getList();
this.currentRow.billNo = ""
this.codeDetailList = [] this.codeDetailList = []
this.resultDetailList = [] this.resultDetailList = []
}, },
@ -1207,7 +1222,6 @@ export default {
limit: 10 limit: 10
}; };
this.getBizDetailList(); this.getBizDetailList();
}, },
onBizSubmit() { onBizSubmit() {
if (isBlank(this.currentRow.billNo)){ if (isBlank(this.currentRow.billNo)){

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

@ -53,6 +53,15 @@
:disabled="editData.serialNo!=null && editData.serialNo!='' "></el-input> :disabled="editData.serialNo!=null && editData.serialNo!='' "></el-input>
</el-form-item> </el-form-item>
</el-col> </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-col :span="11">-->
<!-- <el-form-item>--> <!-- <el-form-item>-->

Loading…
Cancel
Save