|
@@ -7,6 +7,17 @@
|
|
|
<el-table :data="basisList" border size="mini">
|
|
<el-table :data="basisList" border size="mini">
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
|
|
+ <el-table-column label="状态"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ width="100px">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span v-if="scope.row.CertSubStatus=='1'"
|
|
|
|
|
+ style="color:#67C23A">准入</span>
|
|
|
|
|
+ <span v-else-if="scope.row.CertSubStatus=='2'"
|
|
|
|
|
+ style="color:#E6A23C">暂停</span>
|
|
|
|
|
+ <span v-else>——</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
@@ -22,75 +33,75 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { mapGetters } from "vuex";
|
|
|
|
|
-import dataapi from "@/api/oilsupplier/dataentry";
|
|
|
|
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
|
|
+import dataapi from '@/api/oilsupplier/dataentry'
|
|
|
export default {
|
|
export default {
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters({
|
|
...mapGetters({
|
|
|
- authUser: "authUser"
|
|
|
|
|
|
|
+ authUser: 'authUser'
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- name: "BasisList",
|
|
|
|
|
|
|
+ name: 'BasisList',
|
|
|
components: {},
|
|
components: {},
|
|
|
props: {},
|
|
props: {},
|
|
|
watch: {},
|
|
watch: {},
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
return {
|
|
return {
|
|
|
basisList: [],
|
|
basisList: [],
|
|
|
size: 10,
|
|
size: 10,
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
currentItemCount: 0,
|
|
currentItemCount: 0,
|
|
|
- SupplierTypeCode: "",
|
|
|
|
|
- SupplierId:""
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ SupplierTypeCode: '',
|
|
|
|
|
+ SupplierId: ''
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- initData() {
|
|
|
|
|
- let _this = this;
|
|
|
|
|
|
|
+ initData () {
|
|
|
|
|
+ let _this = this
|
|
|
const params = {
|
|
const params = {
|
|
|
SupplierTypeCode: this.SupplierTypeCode,
|
|
SupplierTypeCode: this.SupplierTypeCode,
|
|
|
_currentPage: this.currentPage,
|
|
_currentPage: this.currentPage,
|
|
|
_size: this.size
|
|
_size: this.size
|
|
|
- };
|
|
|
|
|
|
|
+ }
|
|
|
this.$axios
|
|
this.$axios
|
|
|
- .get("/select/zrfwselect", {
|
|
|
|
|
|
|
+ .get('/select/zrfwselect', {
|
|
|
params
|
|
params
|
|
|
})
|
|
})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
if (res.data.items != null) {
|
|
if (res.data.items != null) {
|
|
|
- _this.SupplierId = res.data.items[0].SupplierId;
|
|
|
|
|
- _this.basisList = res.data.items;
|
|
|
|
|
- _this.currentItemCount = res.data.currentItemCount;
|
|
|
|
|
|
|
+ _this.SupplierId = res.data.items[0].SupplierId
|
|
|
|
|
+ _this.basisList = res.data.items
|
|
|
|
|
+ _this.currentItemCount = res.data.currentItemCount
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- console.error(err);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- getvalue(SupplierTypeCode) {
|
|
|
|
|
- this.SupplierTypeCode = SupplierTypeCode;
|
|
|
|
|
- this.initData();
|
|
|
|
|
|
|
+ getvalue (SupplierTypeCode) {
|
|
|
|
|
+ this.SupplierTypeCode = SupplierTypeCode
|
|
|
|
|
+ this.initData()
|
|
|
},
|
|
},
|
|
|
- handleSizeChange(value) {
|
|
|
|
|
- this.size = value;
|
|
|
|
|
- this.currentPage = 1;
|
|
|
|
|
- this.initData();
|
|
|
|
|
|
|
+ handleSizeChange (value) {
|
|
|
|
|
+ this.size = value
|
|
|
|
|
+ this.currentPage = 1
|
|
|
|
|
+ this.initData()
|
|
|
},
|
|
},
|
|
|
- handleCurrentChange(value) {
|
|
|
|
|
- this.currentPage = value;
|
|
|
|
|
- this.initData();
|
|
|
|
|
|
|
+ handleCurrentChange (value) {
|
|
|
|
|
+ this.currentPage = value
|
|
|
|
|
+ this.initData()
|
|
|
},
|
|
},
|
|
|
- toPdf() {
|
|
|
|
|
- if (this.SupplierId == "") {
|
|
|
|
|
|
|
+ toPdf () {
|
|
|
|
|
+ if (this.SupplierId == '') {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
|
|
- message: "请先准入申请"
|
|
|
|
|
- });
|
|
|
|
|
- return;
|
|
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: '请先准入申请'
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
dataapi
|
|
dataapi
|
|
|
- .pdfexport(this.SupplierId, "02", this.$axios)
|
|
|
|
|
|
|
+ .pdfexport(this.SupplierId, '02', this.$axios)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
// response
|
|
// response
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
@@ -98,43 +109,43 @@ export default {
|
|
|
// type: 'success'
|
|
// type: 'success'
|
|
|
// message: res.data.message
|
|
// message: res.data.message
|
|
|
// })
|
|
// })
|
|
|
- let docurl = res.data.item;
|
|
|
|
|
- let pdfurl;
|
|
|
|
|
|
|
+ let docurl = res.data.item
|
|
|
|
|
+ let pdfurl
|
|
|
// 内网服务器专用
|
|
// 内网服务器专用
|
|
|
if (process.client && docurl.indexOf('upfile') === 0) {
|
|
if (process.client && docurl.indexOf('upfile') === 0) {
|
|
|
- const myDomain = window.location.host;
|
|
|
|
|
|
|
+ const myDomain = window.location.host
|
|
|
// location.href = 'http://' + myDomain + '/' + docurl
|
|
// location.href = 'http://' + myDomain + '/' + docurl
|
|
|
pdfurl = 'http://' + process.env.LOCAL_IP + '/' + docurl
|
|
pdfurl = 'http://' + process.env.LOCAL_IP + '/' + docurl
|
|
|
let requestParams = {
|
|
let requestParams = {
|
|
|
pdfUrl: pdfurl,
|
|
pdfUrl: pdfurl,
|
|
|
watermark: this.authUser.Profile.Realname
|
|
watermark: this.authUser.Profile.Realname
|
|
|
- };
|
|
|
|
|
|
|
+ }
|
|
|
this.$axios
|
|
this.$axios
|
|
|
- .post("supplierdataentry/word-to-pdf-watermark", requestParams)
|
|
|
|
|
- .then(function(res) {
|
|
|
|
|
- window.open('http://' + myDomain + '/' + res.data);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ .post('supplierdataentry/word-to-pdf-watermark', requestParams)
|
|
|
|
|
+ .then(function (res) {
|
|
|
|
|
+ window.open('http://' + myDomain + '/' + res.data)
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
// location.href = 'http://' + docurl
|
|
// location.href = 'http://' + docurl
|
|
|
pdfurl = 'http://' + docurl
|
|
pdfurl = 'http://' + docurl
|
|
|
let requestParams = {
|
|
let requestParams = {
|
|
|
pdfUrl: pdfurl,
|
|
pdfUrl: pdfurl,
|
|
|
watermark: this.authUser.Profile.Realname
|
|
watermark: this.authUser.Profile.Realname
|
|
|
- };
|
|
|
|
|
|
|
+ }
|
|
|
this.$axios
|
|
this.$axios
|
|
|
- .post("supplierdataentry/word-to-pdf-watermark", requestParams)
|
|
|
|
|
- .then(function(res) {
|
|
|
|
|
- window.open('http://' + res.data);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ .post('supplierdataentry/word-to-pdf-watermark', requestParams)
|
|
|
|
|
+ .then(function (res) {
|
|
|
|
|
+ window.open('http://' + res.data)
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- console.error(err);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-};
|
|
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
<style>
|