From f1e2e06b105baf27bd58b0287e3b3969db69c2b6 Mon Sep 17 00:00:00 2001
From: Zhao Qiqi <1287235164@qq.com>
Date: Thu, 11 Aug 2022 19:23:17 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E9=87=87=E7=9A=84=E5=86=85=E9=83=A8?=
=?UTF-8?q?=E7=BC=96=E7=A0=81,=E5=90=88=E6=A0=BC=E8=AF=81=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E4=B8=AD=E5=90=88=E6=A0=BC=E8=AF=81=E7=8A=B6=E6=80=81?=
=?UTF-8?q?,=E5=90=88=E6=A0=BC=E8=AF=81=E7=9B=98=E7=82=B9=E8=AE=B0?=
=?UTF-8?q?=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/router/modules/codemenu.js | 15 +
.../baseoutsourcingapplicationAdd.vue | 4 +-
.../chexingbyconfiguration.vue | 3 +-
.../hegezhengtaizhang/hegezhengtaizhang.vue | 191 +++++----
.../hegezhengtaizhangAdd.vue | 34 +-
.../hegezhengpandianjilu.vue | 382 ++++++++++++++++++
.../hegezhengpandianjiluAdd.vue | 299 ++++++++++++++
7 files changed, 822 insertions(+), 106 deletions(-)
create mode 100644 anrui-scm/anrui-scm-ui/src/views/supplychain/hegezhengpandianjilu/hegezhengpandianjilu.vue
create mode 100644 anrui-scm/anrui-scm-ui/src/views/supplychain/hegezhengpandianjilu/hegezhengpandianjiluAdd.vue
diff --git a/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js b/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
index e86f64a80a..1b72147d52 100644
--- a/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
+++ b/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
@@ -496,6 +496,21 @@ const codemenu = [
meta: { title: '出库管理', noCache: true }
}]
},
+ // 合格证盘点记录
+ {
+ path: '/hegezhengpandian',
+ component: Layout,
+ redirect: '/hegezhengpandian',
+ meta: {
+ title: '合格证盘点'
+ },
+ children: [{
+ path: '/hegezhengpandian/pandianjilu',
+ component: () => import('@/views/supplychain/hegezhengpandianjilu/hegezhengpandianjilu.vue'),
+ name: 'hegezhengpandianjilu',
+ meta: { title: '合格证盘点', noCache: true }
+ }]
+ },
// 验车管理
// {
// path: '/yancheguanli',
diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
index 6ab41c782c..97dc1b768e 100644
--- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
@@ -109,8 +109,7 @@
-
+ {{formobj.insideCode}}
@@ -486,6 +485,7 @@ export default {
this.formobj.configName = info[0].configName // 常用配置名称
this.formobj.configSid = info[0].configSid // 常用配置sid
this.formobj.guidedPrice = info[0].guidedPrice// 销售指导价
+ this.formobj.insideCode = info[0].insideCode// 内部编码
this.formobj.manufactorSettlementPrice = info[0].manufactorSettlementPrice// 厂家合同价
},
selectVehicleDialog() {
diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/chexingbyconfiguration.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/chexingbyconfiguration.vue
index df15ae503b..c8571fd942 100644
--- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/chexingbyconfiguration.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/chexingbyconfiguration.vue
@@ -161,7 +161,8 @@ export default {
configName: element.configName,
configSid: element.configSid,
guidedPrice: element.guidedPrice,
- manufactorSettlementPrice: element.manufactorSettlementPrice
+ manufactorSettlementPrice: element.manufactorSettlementPrice,
+ insideCode:element.insideCode
})
})
this.sids = aa
diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhang.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhang.vue
index 16340b0629..1f0f18b44c 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhang.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhang.vue
@@ -48,7 +48,7 @@
- 查询
+ 查询
重置
@@ -63,12 +63,12 @@
@selection-change="handleSelectionChange">
-
-
-
-
-
-
+
+
+
+
+
+
{{ scope.row.vinNo }}
@@ -158,6 +158,7 @@ import hegezhengtaizhangAdd from './hegezhengtaizhangAdd'
import hegezhengInfo from './hegezhengInfo'
import cheliangtaizhangInfo from '@/views/cheliang/cheliangtaizhang/cheliangtaizhangInfo'
import ButtonBar from '@/components/ButtonBar'
+import { getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel'
export default {
name: 'hegezhengtaizhang',
@@ -269,14 +270,16 @@ export default {
total: 1,
FormLoading: false,
listLoading: false,
+ useOrg:'',
listQuery: {
params: {
certificateStartDate: '',
certificateEndDate: '',
certificateState: '',
certificationNo: '',
- vinNo:'',
- transferStateKey:''
+ vinNo: '',
+ createOrgSid:'',
+ transferStateKey: ''
},
current: 1,
size: 20
@@ -293,26 +296,26 @@ export default {
dialogFormVisible: false, // 添加修改对话框状态
dialogFormShowVisible: false, // 查看对话框默认关闭状态
dialogStatus: '', // 对话框状态
- typeOptions: [],
+ typeOptions: [],
- rules: {
- title: [
- {
- required: true,
- message: '请填写',
- trigger: 'blur'
- }
- ],
- qc: [
- {
- required: true,
- message: '请填写',
- trigger: 'blur'
- }
- ]
- }
- // ------------------------------------
+ rules: {
+ title: [
+ {
+ required: true,
+ message: '请填写',
+ trigger: 'blur'
+ }
+ ],
+ qc: [
+ {
+ required: true,
+ message: '请填写',
+ trigger: 'blur'
+ }
+ ]
}
+ // ------------------------------------
+ }
},
computed: {
...mapGetters([
@@ -327,7 +330,7 @@ export default {
// 初始化变量
this.init()
// 加载列表
- this.getList()
+ this.getPathSid()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
@@ -404,25 +407,35 @@ export default {
}
})
},
+ getPathSid() {
+ const userSid = window.sessionStorage.getItem('userSid')
+ getPathSidByUserSid({ userSid: userSid }).then((res) => {
+ if (res.code === '200') {
+ this.listQuery.params.createOrgSid = res.data
+ this.useOrg = res.data
+ this.getList()
+ }
+ })
+ },
// 查询列表信息
- getList() {
- this.listLoading = true
- pagerList(this.listQuery).then((response) => {
- console.log('列表查询结果:', response)
- this.listLoading = false
- if (
- response.code === '200' &&
- response.data &&
- response.data.total > 0
- ) {
- this.list = response.data.records
- this.total = response.data.total
- } else {
- this.list = []
- this.total = 0
- }
- })
- },
+ getList() {
+ this.listLoading = true
+ pagerList(this.listQuery).then((response) => {
+ console.log('列表查询结果:', response)
+ this.listLoading = false
+ if (
+ response.code === '200' &&
+ response.data &&
+ response.data.total > 0
+ ) {
+ this.list = response.data.records
+ this.total = response.data.total
+ } else {
+ this.list = []
+ this.total = 0
+ }
+ })
+ },
// 查询按钮
handleFilter() {
this.listQuery.current = 1
@@ -436,13 +449,13 @@ export default {
certificateEndDate: '',
certificateState: '',
certificationNo: '',
- vinNo:'',
- transferStateKey:''
+ vinNo: '',
+ transferStateKey: ''
},
current: 1,
size: 20
}
- this.getList()
+ this.getPathSid()
},
// ----------------------------------方法--------------------
// 添加前数据初始化
@@ -467,7 +480,7 @@ export default {
toAdd() {
this.viewState = 2
// this.dialogStatus = 'add'
- this.$refs['divadd'].showAdd()
+ this.$refs['divadd'].showAdd(this.useOrg)
// this.$router.push({
// path: '/cheliang/hegezhengtaizhangAdd/0'
// })
@@ -492,7 +505,7 @@ export default {
this.viewState = 3
const sid = this.sids[0]
const row = this.row
- this.$refs['divadd'].showEdit(sid, row)
+ this.$refs['divadd'].showEdit(sid, row,this.useOrg)
} else if (this.sids.length > 1) {
this.$notify({
title: '提示',
@@ -504,25 +517,25 @@ export default {
this.$notify({
title: '提示',
message: '没有选择合格证台账!!',
- type: 'error',
- duration: 2000
- })
- return
- }
- },
- // 打开查看
- handleCheck(row) {
- console.log('222222', row)
- this.viewState = 4
- const sid = row.sid
- this.$refs['divinfo'].showInfo(sid)
- // this.$router.push({
- // path: '/cheliang/hegezhengInfo',
- // query: {
- // sid: row.sid
- // }
- // })
- },
+ type: 'error',
+ duration: 2000
+ })
+ return
+ }
+ },
+ // 打开查看
+ handleCheck(row) {
+ console.log('222222', row)
+ this.viewState = 4
+ const sid = row.sid
+ this.$refs['divinfo'].showInfo(sid)
+ // this.$router.push({
+ // path: '/cheliang/hegezhengInfo',
+ // query: {
+ // sid: row.sid
+ // }
+ // })
+ },
// 根据本行ID删除数据
doDel() {
const _this = this
@@ -578,8 +591,8 @@ export default {
})
})
},
- doClose(){
- this.$store.dispatch('tagsView/delView', this.$route);
+ doClose() {
+ this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
},
handleLock(row) {
@@ -588,28 +601,28 @@ export default {
console.log(this.imgs, 'wowoeieiurir')
this.dialogFormVisible = true
this.dialogTitle = '查看'
- // this.$refs.editform.initForm(row)
- }
-
+ // this.$refs.editform.initForm(row)
}
+
}
+}
diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue
index b7da597ff8..d1a927ac37 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue
@@ -32,12 +32,13 @@
合格证状态:
-
-
-
-
-
-
+
+
+
+
+
@@ -357,12 +358,13 @@ export default {
FormLoading: false,
listLoading: false,
temp: {
+ createOrgSid: '',
certificateSituation: '',
certificateSituationValue: '',
certificatePhoto: [],
- certificateState: '0002', // 合格证状态key
+ certificateState: '004', // 合格证状态key
certificateStateValue: '正式', // 合格证状态value
- noticeModel:'' // 公告型号
+ noticeModel: '' // 公告型号
}, // 添加和修改
templook: {}, // 查看实体
Situation: [],
@@ -393,9 +395,9 @@ export default {
certificateDate: [
{ required: true, message: '请选择发证日期', trigger: 'blur' }
],
- // certificateSituation: [
- // { required: true, message: '请选择合格证情况', trigger: 'change' }
- // ],
+ certificateSituation: [
+ { required: true, message: '请选择合格证情况', trigger: 'change' }
+ ],
toCardDate: [
{ required: true, message: '请选择到证日期', trigger: 'blur' }
],
@@ -404,7 +406,7 @@ export default {
],
certificateStateValue: [
{ required: true, message: '请选择合格证状态', trigger: 'change' }
- ],
+ ]
// certificatePhoto: [
// { required: true, message: '请选择合格证照片', trigger: 'blur' },
// ],
@@ -450,15 +452,18 @@ export default {
// this.getCheXingHao()
this.getCheJia()
},
- showAdd() {
+ showAdd(createOrgSid) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
this.dialogStatus = 'add'
this.viewTitle = '【新增】合格证信息'
+ this.temp.certificateState = '004'
+ this.temp.certificateStateValue = '正式'
+ this.temp.createOrgSid = createOrgSid
},
- showEdit(sid, row) {
+ showEdit(sid, row, createOrgSid) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
@@ -468,6 +473,7 @@ export default {
const data = resp.data
this.temp = data
this.temp.sid = sid
+ this.temp.createOrgSid = createOrgSid
}).catch(e => {
this.temp = row
})
diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/hegezhengpandianjilu/hegezhengpandianjilu.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/hegezhengpandianjilu/hegezhengpandianjilu.vue
new file mode 100644
index 0000000000..2236c7c668
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/hegezhengpandianjilu/hegezhengpandianjilu.vue
@@ -0,0 +1,382 @@
+
+
+
+
+
+
+
+
+ {{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 办理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 合格证编码
+ {{ formobj.mainSid }}
+
+
+ 车架号
+ {{ formobj.mainSid }}
+
+
+
+
+
+
+
+
+
+
+
+
+ 盘库日期
+ {{ formobj.InventoryDate }}
+
+
+ 存放地点
+ {{ formobj.location }}
+
+
+
+
+ 盘库人员
+ {{ formobj.inventoryName }}
+
+
+ 状态
+
+
+
+
+
+
+
+
+
+ 备注
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/hegezhengpandianjilu/hegezhengpandianjiluAdd.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/hegezhengpandianjilu/hegezhengpandianjiluAdd.vue
new file mode 100644
index 0000000000..6cf3e294ec
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/hegezhengpandianjilu/hegezhengpandianjiluAdd.vue
@@ -0,0 +1,299 @@
+
+
+
+
+
+
+
+
+
合格证盘点操作
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+ 确认
+
+
+
+
+ {{ scope.row.mainSid }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.location }}
+
+
+
+
+ {{ scope.row.lastDate }}
+
+
+
+
+ {{ scope.row.lastName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+