|
|
|
@ -111,7 +111,13 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<el-dialog title="错误信息" :visible.sync="dialogVisible" width="30%">
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="错误信息"
|
|
|
|
|
:visible.sync="dialogVisible"
|
|
|
|
|
width="30%"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
>
|
|
|
|
|
<span>{{ errorDetail }}</span>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="dialogVisible = false"
|
|
|
|
@ -123,19 +129,18 @@
|
|
|
|
|
title="选择往来单位"
|
|
|
|
|
:visible.sync="dialogTableVisible"
|
|
|
|
|
width="70%"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
>
|
|
|
|
|
<el-form :inline="true" :model="unitquery" class="query-form" size="mini">
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
<el-input v-model="unitquery.key" placeholder="搜索"></el-input>
|
|
|
|
|
<el-input v-model="unitquery.key" placeholder="搜索" clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="search"
|
|
|
|
|
@click.native.stop="getUnitList()"
|
|
|
|
|
>查询
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="resetUnitQuery()"></el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click.native.stop="getUnitList()">查询</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@ -179,6 +184,8 @@
|
|
|
|
|
:visible.sync="codeDetailVisible"
|
|
|
|
|
width="80%"
|
|
|
|
|
v-if="codeDetailVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
>
|
|
|
|
|
<codeDetail
|
|
|
|
|
:idQuery="idQuery"
|
|
|
|
@ -206,6 +213,7 @@ import {getBusTypeByUser} from "../../api/warehouse/BusRole";
|
|
|
|
|
import {unitListBykey} from "../../api/warehouse/unit";
|
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
|
import codeDetail from "./errorCode";
|
|
|
|
|
import {getCorpType} from "@/api/basic/bussinessType";
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
|
site_id: "",
|
|
|
|
@ -298,16 +306,27 @@ export default {
|
|
|
|
|
this.curIndex = row.id;
|
|
|
|
|
this.dialogTableVisible = true;
|
|
|
|
|
this.curOrderId = row.orderId;
|
|
|
|
|
this.unitquery = {
|
|
|
|
|
key: "",
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
}
|
|
|
|
|
this.getUnitList();
|
|
|
|
|
getCorpType({action: row.action}).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.unitquery = {
|
|
|
|
|
key: "",
|
|
|
|
|
corpType: res.data,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
}
|
|
|
|
|
this.getUnitList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("查询往来单位错误");
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
closeDetailDialog(val) {
|
|
|
|
|
this.codeDetailVisible = false;
|
|
|
|
|
},
|
|
|
|
|
resetUnitQuery() {
|
|
|
|
|
this.unitlist = [];
|
|
|
|
|
this.unitquery = {key: "", page: 1, limit: 20};
|
|
|
|
|
},
|
|
|
|
|
getUnitList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
unitListBykey(this.unitquery)
|
|
|
|
|