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

@ -2,13 +2,21 @@
<div>
<prescribePanel
:RowType="type"
<el-tabs type="border-card" style="margin: 15px">
></prescribePanel>
<el-tab-pane label="已完成单据">
<prescribePanel
style="margin: -15px"
:RowType="type"
:workPlaceCode="workPlaceCode"
></prescribePanel>
</el-tab-pane>
</el-tabs>
</div>
</template>
@ -27,7 +35,13 @@ export default {
},
data() {
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>
</el-option>
</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-col>

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

Loading…
Cancel
Save