-
{{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }}
-
-
-
-
-
-
-
-
-
- {{ scope.row.sid }}
-
-
-
-
-
+
+
+
+
+
+ {{ scope.row.brandName }}
+
+
+
+
+ {{ scope.row.vehicleAlias }}
+
+
+
+
+ {{ scope.row.vinNo }}
+
+
+
+
+ {{ scope.row.color }}
+
+
+
+
+ {{ scope.row.location }}
+
+
+
+
+ {{ scope.row.guidedPrice }}
+
+
+
@@ -51,13 +66,6 @@
/>
-
-
-
-
-
-
-
@@ -66,31 +74,47 @@ import req from '@/api/baseoutsourcingapplication/baseoutsourcingapplicationvehi
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
-import divAdd from './baseoutsourcingapplicationvehicleAdd'
-import divInfo from './baseoutsourcingapplicationvehicleInfo'
export default {
name: 'BaseOutsourcingApplicationVehicleIndex',
components: {
ButtonBar,
Pagination,
- pageye,
- divAdd,
- divInfo
+ pageye
},
+ props:{
+ selectedSids:{
+ type:String,
+ required:true
+ },
+ modelSid:{
+ type:String,
+ required:true
+ },
+ configSid:{
+ type:String,
+ required:true
+ }
+ },
data() {
return {
btndisabled: false,
viewState: 1, // 1、列表 2、添加 3、修改 4、查看
- isSearchShow: true,
+ isSearchShow: false,
tableLoading: false,
dataList: [],
+ list: [],
+ tableKey:0,
+ listLoading: false,
+ sids: [],
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
- sids: [], // 用于导出的时候保存已选择SID
+ modelSid:"",
+ configSid:"",
+ vehicleSid: "", // 用于导出的时候保存已选择SID
outAppSid: '', // 外采申请单sid
VIN: '' // 车架号
}
@@ -102,159 +126,28 @@ export default {
this.loadList()
},
methods: {
+ getSids(){
+ return this.multipleSelection;
+ },
resetState() {
this.viewState = 1
},
- btnHandle(btnKey) {
- switch (btnKey) {
- case 'toAdd':
- this.toAdd()
- break
- case 'toEdit':
- this.toEdit()
- break
- case 'doSubmit':
- this.doSubmit()
- break
- case 'doDel':
- this.doDel()
- break
- case 'doImport':
- this.doImport()
- break
- case 'doExport':
- this.doExport()
- break
- default:
- break
- }
- },
- toAdd(row) {
- this.viewState = 2
- this.$refs['divadd'].showAdd()
- },
- toEdit() {
- if (this.multipleSelection.length === 0) {
- this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑' })
- return
- }
- if (this.multipleSelection.length > 1) {
- this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' })
- return
- }
- this.viewState = 3
- const row = this.multipleSelection[0]
- this.$refs['divadd'].showEdit(row)
- },
- doSubmit(row) {
- // 提交的代码
- this.btndisabled = true
- req
- .doSubmit(this.queryParams.params)
- .then(resp => {
- console.log(resp)
- this.btndisabled = false
- if (resp.success) {
- // 加提交后的逻辑
- } else {
- // 根据resp.code进行异常情况处理
- }
- })
- .catch(() => {
- this.btndisabled = false
- })
- },
- doDel(row) {
- if (this.multipleSelection.length === 0) {
- this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
- return
- }
- const _this = this
- const sids = []
- this.multipleSelection.forEach(row => {
- sids.push(row.sid)
- })
- const tip = '请确认是否删除所选 ' + this.multipleSelection.length + ' 条记录?'
- this.$confirm(tip, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- })
- .then(() => {
- const loading = this.$loading({
- lock: true,
- text: 'Loading',
- spinner: 'el-icon-loading',
- background: 'rgba(0, 0, 0, 0.7)'
- })
- req
- .delBySids(sids)
- .then(resp => {
- loading.close()
- if (resp.success) {
- _this.$message({ type: 'success', message: resp.msg, showClose: true })
- _this.loadList()
- } else {
- // 根据resp.code进行异常情况处理
- }
- })
- .catch(e => {
- loading.close()
- })
- })
- .catch(() => {})
- },
- doImport(row) {
- // 导入的代码
- req
- .importExcel(this.queryParams.params)
- .then(resp => {
- if (resp.success) {
- console.log(resp)
- }
- })
- .catch(() => {})
- },
- doExport(row) {
- // 导出的代码
- const sids = []
- this.multipleSelection.forEach(row => {
- sids.push(row.sid)
- })
- this.queryParams.params.sids = sids
- req
- .exportExcel(this.queryParams.params)
- .then(resp => {
- if (resp.success) {
- var map = resp.data
- const fileName = map.filename // 导出文件名
- // // 对于
标签,只有 Firefox 和 Chrome(内核) 支持 download 属性
- // // IE10以上支持blob但是依然不支持download
- const link = document.createElement('a') // 创建a标签
- link.download = fileName // a标签添加属性
- link.style.display = 'none'
- link.href = map.downurl
- document.body.appendChild(link)
- link.click() // 执行下载
- URL.revokeObjectURL(link.href) // 释放url
- document.body.removeChild(link) // 释放标签
- }
- })
- .catch(() => {})
- },
dosearch() {
this.queryParams.current = 1
this.loadList()
},
resetQuery() {
- this.queryParams.params = {}
- this.queryParams.params.sid = '' // sid
- this.queryParams.params.name = '' // 登录名
+ this.queryParams.params.vehicleSid = ''
+ this.queryParams.params.modelSid = ''
+ this.queryParams.params.configSid = ''
this.dosearch()
},
loadList() {
const _this = this
this.tableLoading = true
+ this.queryParams.params.vehicleSid = this.selectedSids
+ this.queryParams.params.modelSid = this.modelSid
+ this.queryParams.params.configSid = this.configSid
req
.listPage(this.queryParams)
.then(resp => {
diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue
new file mode 100644
index 0000000000..93bf81ba1b
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue
@@ -0,0 +1,207 @@
+
+
+
+
+
+
+
外采申请表
+
+ 申请编号
+
+ {{ formobj.applicationCode }}
+ 申请人姓名
+ {{ formobj.createByName }}
+ 申请日期
+ {{ formobj.applicationDate }}
+
+
+ 外采类型
+
+
+ 政策外采
+ 直接外采
+
+
+
+ 采购单位名称
+ {{ formobj.purchasingUnitName }}
+
+
+ 车型名称
+ {{ formobj.modelName }}
+
+
+ 常用配置名称
+ {{ formobj.configName }}
+
+ 采购价格
+ {{ formobj.purchasePrice }}
+
+ 销售指导价
+ {{ formobj.guidedPrice }}
+
+ 厂家合同价
+ {{ formobj.manufactorSettlementPrice }}
+
+ 台数
+ {{ formobj.num }}
+
+ 订金
+ {{ formobj.deposit }}
+
+ 费用名称
+ {{ formobj.expenseName }}
+
+ 费用金额合计
+ {{ formobj.totalExpenseAmount }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue
new file mode 100644
index 0000000000..f8d27104e9
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue
@@ -0,0 +1,453 @@
+
+
+
+
+
+
+
+
+
+ 外采申请表
+
+
+
+ *申请编号
+
+
+ {{formobj.applicationCode}}
+
+
+ *申请人
+
+
+ {{formobj.createByName}}
+
+
+ *申请日期
+
+
+ {{formobj.applicationDate}}
+
+
+
+
+ *外采类型
+
+
+ 直接外采
+ 政策外采
+
+
+
+
+ *采购单位
+
+
+
+
+
+
+
+ *车型
+
+
+ {{formobj.modelName}}
+
+
+
+ 选择
+
+
+
+
+ *常用配置名称
+
+
+ {{formobj.configName}}
+
+
+
+
+ *采购价格
+
+
+
+
+
+ *销售指导价
+
+
+
+ {{formobj.guidedPrice}}
+
+
+
+
+ *厂家合同价
+
+
+
+ {{formobj.manufactorSettlementPrice}}
+
+
+ *台数
+
+
+
+ {{formobj.num}}
+
+
+
+
+ *订金
+
+
+
+
+
+
+
+ *费用名称
+
+
+
+
+
+ *费用金额合计
+
+
+
+
+
+
+
+ 车辆列表 选择车辆
+
+
‘
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue
new file mode 100644
index 0000000000..fedfe2c636
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
外采申请表
+
+ 申请编号
+
+ {{ formobj.applicationCode }}
+ 申请人姓名
+ {{ formobj.createByName }}
+ 申请日期
+ {{ formobj.applicationDate }}
+
+
+ 外采类型
+
+
+ 政策外采
+ 直接外采
+
+
+
+ 采购单位名称
+ {{ formobj.purchasingUnitName }}
+
+
+ 车型名称
+ {{ formobj.modelName }}
+
+
+ 常用配置名称
+ {{ formobj.configName }}
+
+ 采购价格
+ {{ formobj.purchasePrice }}
+
+ 销售指导价
+ {{ formobj.guidedPrice }}
+
+ 厂家合同价
+ {{ formobj.manufactorSettlementPrice }}
+
+ 台数
+ {{ formobj.num }}
+
+ 订金
+ {{ formobj.deposit }}
+
+ 费用名称
+ {{ formobj.expenseName }}
+
+ 费用金额合计
+ {{ formobj.totalExpenseAmount }}
+
+
+
+
+
+
+
+
+
+
+