8/22 页面优化

20240912_adapter_z
wangwei 8 months ago
parent 83ea4171dc
commit fbf5f3b75e

@ -78,6 +78,28 @@
></el-date-picker>
</el-form-item>
</template>
<el-form-item prop="workPlaceCode" class="query-form-item" label="当前工位:">
<el-select
v-model="filterQuery.workPlaceCode"
placeholder="当前工位"
style="width: 90%"
disabled
filterable
>
<el-option
v-for="item in curWorkPlaces"
:key="item.workplaceId"
:label="item.workplaceName"
:value="item.workplaceId"
>
<span style="float: left">{{ item.workplaceName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{
item.workplaceId
}}</span>
</el-option>
</el-select>
</el-form-item>
</el-row>
</el-form>
<div class="top-right-btn">
@ -676,6 +698,7 @@ import {convertDate} from "@/utils/date";
import {isBlank} from "@/utils/strUtil";
import {getBizDetailList} from "@/api/inout/orderDetailBiz";
import {getCodeList} from "@/api/inout/code";
import { listPage } from '@/api/basic/workPlace/sysWorkplaceManage'
export default {
name: "chooseDraftOrderDialog",
@ -858,7 +881,8 @@ export default {
curRow: null,
//out:;return:退;search:
splitType: null,
radioCh: ''
radioCh: '',
curWorkPlaces: ''
};
},
components: {
@ -1165,7 +1189,23 @@ export default {
choose(){
this.closeChooseDialog()
this.handleChoose(this.radioCh)
}
},
//
findCurWorkPlaces(val) {
let query = {
key: val,
status: 1,
// invCode: this.orderFormData.invCode,
page: 1,
limit: 100,
}
listPage(query).then((res) => {
this.curWorkPlaces = res.data.list || [];
if (this.curWorkPlaces.length == 1) {
this.orderFormData.workPlaceCode = this.curWorkPlaces[0].workplaceId;
}
})
},
},
mounted() {
@ -1177,6 +1217,7 @@ export default {
created() {
this.getInvList(this);
this.getBusType(this);
this.findCurWorkPlaces();
this.splitType = this.$route.query.splitType;
if (this.splitType == "search") {
@ -1190,7 +1231,7 @@ export default {
this.filterQuery.statusType = 'scan_code';
}
getHead("IoSplitFinishCode", "1").then((re) => {
getHead("chooseDraftOrder", "1").then((re) => {
//
this.tableObj = re.data;
this.tableHeader = re.data.tableList;

Loading…
Cancel
Save