fix: 提交

20240912_adapter_z
chenhc 10 months ago
parent 26762bc8bc
commit b8781fb399

@ -44,5 +44,13 @@ export function findInvRemind(query) {
}); });
} }
export function findInvRemindByBillNo(query) {
return axios({
url: "/udiwms/ioSplit/findInvRemindByBillNo",
method: "get",
params: query
});
}

@ -2,6 +2,15 @@
<div> <div>
<el-card v-if="!changeViewDisabled"> <el-card v-if="!changeViewDisabled">
<el-alert
style="margin-top: 1px;margin-bottom: 10px;font-size: 20px;"
:title="msgTip"
:closable="false"
type="warning">
</el-alert>
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form" <el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form"
size="mini" label-width="100px"> size="mini" label-width="100px">
<el-row style=" display:flex; flex-wrap: wrap; "> <el-row style=" display:flex; flex-wrap: wrap; ">
@ -215,6 +224,14 @@
<el-card v-if="changeViewDisabled"> <el-card v-if="changeViewDisabled">
<el-alert
style="margin-top: 1px;margin-bottom: 10px;font-size: 20px;"
:title="msgTip"
:closable="false"
type="warning">
</el-alert>
<div style="min-height: 400px;"> <div style="min-height: 400px;">
<!-- 分割线 --> <!-- 分割线 -->
<el-form :model="filterQuery" class="query-form" size="mini" label-width="100px" :inline="true" <el-form :model="filterQuery" class="query-form" size="mini" label-width="100px" :inline="true"
@ -367,6 +384,7 @@
</template> </template>
<script> <script>
import {findInvRemindByBillNo} from "@/api/inout/splitCode";
import addOrder from "@/views/inout/DialogCreateOrder"; import addOrder from "@/views/inout/DialogCreateOrder";
import errOrder from "@/views/inout/IoCreateErrorOrder"; import errOrder from "@/views/inout/IoCreateErrorOrder";
import {executeFuc, getHead} from "@/utils/customConfig"; import {executeFuc, getHead} from "@/utils/customConfig";
@ -399,6 +417,7 @@ export default {
}, },
data() { data() {
return { return {
msgTip: "库存预警提醒:",
isLinkDisabled: false, isLinkDisabled: false,
changeViewDisabled: true, changeViewDisabled: true,
userInfo: { userInfo: {
@ -474,6 +493,17 @@ export default {
addOrder, errOrder, bindWorkDialog, prescribeOriginPanel, prescribeOriginDiPanel addOrder, errOrder, bindWorkDialog, prescribeOriginPanel, prescribeOriginDiPanel
}, },
methods: { methods: {
changeInvRemind(val) {
let post = {
workPlaceCode: val
}
findInvRemindByBillNo(post).then((response) => {
if (response.code === 20000) {
this.msgTip = response.data
}
}).catch(() => {
});
},
changeView() { changeView() {
this.changeViewDisabled = !this.changeViewDisabled this.changeViewDisabled = !this.changeViewDisabled
}, },
@ -578,6 +608,10 @@ export default {
this.loading = false this.loading = false
this.list = res.data.list || [] this.list = res.data.list || []
this.total = res.data.total || 0 this.total = res.data.total || 0
if (this.filterQuery.workPlaceCode != null){
this.changeInvRemind(this.filterQuery.workPlaceCode)
}
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
this.list = [] this.list = []

@ -2,12 +2,20 @@
<div> <div>
<el-tabs type="border-card" style="margin: 15px">
<el-tab-pane label="已完成单据">
<prescribePanel <prescribePanel
style="margin: -15px"
:RowType="type" :RowType="type"
:workPlaceCode="workPlaceCode"
></prescribePanel> ></prescribePanel>
</el-tab-pane>
</el-tabs>
</div> </div>
</template> </template>
@ -27,7 +35,13 @@ export default {
}, },
data() { data() {
return { return {
type: 1 type: 1,
workPlaceCode: null,
}
},
created() {
if (this.$route.query.workplaceId != null){
this.workPlaceCode = Number(this.$route.query.workplaceId);
} }
} }
} }

@ -100,7 +100,7 @@
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.documentTypeCode }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.documentTypeCode }}</span>
</el-option> </el-option>
</el-select> </el-select>
<el-button type="primary" @click="toggleBusType"></el-button> <el-button style="margin-left: 5px" type="primary" @click="toggleBusType"></el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>

@ -275,7 +275,7 @@ export default {
required: false required: false
}, },
workPlaceCode: { workPlaceCode: {
type: String, type: Number,
default: null, default: null,
required: true required: true
} }
@ -424,7 +424,6 @@ export default {
this.showType = 2 this.showType = 2
} }
this.findWorkPlace(this, '') this.findWorkPlace(this, '')
this.filterQuery.workPlaceCode = this.workPlaceCode + ''
getHead('prescribePanel', '1').then((re) => { getHead('prescribePanel', '1').then((re) => {
// //
this.tableObj = re.data this.tableObj = re.data

Loading…
Cancel
Save