From 1bf1fe46e521195bf24dce3a022fb29c30afa461 Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Sat, 22 Oct 2022 16:49:57 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=AA=8C=E8=BD=A6=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E5=88=86=E9=A1=B5=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplychain/yancheguanli/yancheguanli.vue | 98 ++++++-------------
1 file changed, 32 insertions(+), 66 deletions(-)
diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanli.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanli.vue
index 38b91f47c1..c978ee0a7e 100644
--- a/anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanli.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanli.vue
@@ -2,39 +2,30 @@
-
-
-
-
-
{{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }}
+
+ {{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }}
@@ -46,17 +37,15 @@
-
+
-
-
+
验车
查看
@@ -68,21 +57,18 @@
-
+
+
+ {{ scope.row.inspectedType == '1' ? '待验车' : '已验车' }}
+
+
@@ -91,7 +77,6 @@
-
@@ -120,21 +105,18 @@ export default {
isSearchShow: false,
tableLoading: false,
dataList: [],
- useOrg_list: [],
modelName_list: [],
purchaseType_list: [],
- useOrg: '', // 使用组织
- useOrgSid: '', // 使用组织sid
listQuery: {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
vin: '',
model: '',
purchaseType: '',
- inspectedStartDate:'',
- inspectedEndDate:'',
+ inspectedStartDate: '',
+ inspectedEndDate: '',
userSid: window.sessionStorage.getItem('userSid')
}
},
@@ -153,7 +135,6 @@ export default {
created() {
this.getList()
this.getType()
- // this.getUseOrg()
this.getModelName()
},
mounted() {
@@ -190,45 +171,33 @@ export default {
resetQuery() {
this.listQuery = {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
vin: '',
model: '',
purchaseType: '',
- inspectedStartDate:'',
- inspectedEndDate:'',
+ inspectedStartDate: '',
+ inspectedEndDate: '',
userSid: window.sessionStorage.getItem('userSid')
}
}
this.getList()
},
loadList() {
- const _this = this
this.tableLoading = true
- selectCarInspectedList(this.listQuery)
- .then(resp => {
- _this.tableLoading = false
- const data = resp.data
- _this.listQuery.total = data.total
- _this.dataList = data.records
- for (var i = 0; i < this.dataList.length; i++) {
- if (this.dataList[i].inspectedType == '1') {
- this.dataList[i].inspectedType = '待验车'
- } else {
- this.dataList[i].inspectedType = '已验车'
- }
- }
- })
- .catch(() => {
- _this.tableLoading = false
- })
+ selectCarInspectedList(this.listQuery).then(resp => {
+ this.tableLoading = false
+ const data = resp.data
+ this.listQuery.total = data.total
+ this.dataList = data.records
+ }).catch(() => {
+ this.tableLoading = false
+ })
},
getType() {
- typeValues({
- type: 'purchaseOrderType '
- }).then((response) => {
- if (response.code === '200' && response.data) {
+ typeValues({ type: 'purchaseOrderType ' }).then((response) => {
+ if (response.success && response.data) {
this.purchaseType_list = response.data
}
})
@@ -246,8 +215,6 @@ export default {
const userSid = window.sessionStorage.getItem('userSid')
getUseOrgByUserSid({ userSid: userSid }).then((res) => {
if (res.success) {
- this.useOrg = res.data.name // 使用组织
- this.useOrgSid = res.data.sid // 使用组织sid
this.listQuery.params.useOrgSid = res.data.sid
this.loadList()
}
@@ -269,7 +236,6 @@ export default {