diff --git a/yxt-as-ui/src/api/operation/repairbill.js b/yxt-as-ui/src/api/operation/repairbill.js
index 865d8dd16a..05398b1422 100644
--- a/yxt-as-ui/src/api/operation/repairbill.js
+++ b/yxt-as-ui/src/api/operation/repairbill.js
@@ -48,5 +48,14 @@ export default {
data: data,
headers: { 'Content-Type': 'application/json' }
})
+ },
+ // 确认材料费
+ settle: function(data) {
+ return request({
+ url: '/as/v1/AsBusrepairBill/settle',
+ method: 'post',
+ data: data,
+ headers: { 'Content-Type': 'application/json' }
+ })
}
}
diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue
index 63f3551b87..e4ab7f1c08 100644
--- a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue
+++ b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue
@@ -6,9 +6,9 @@
选择客户
保存
- 提交
+ 提交
结算
- 确认材料费
+ 确认材料费
关闭
@@ -442,7 +442,7 @@
付款人编号
-
+
应收金额
@@ -470,7 +470,7 @@
其他结算方式
-
+
@@ -1072,7 +1072,6 @@ export default {
},
settleAccounts() {
this.settleVisible = true
- // this.formobj.payableAmount = this.yfjeTotal
},
settleChange(value) {
const choose = this.settle_list.filter((item) => item.dictValue === value)
@@ -1094,7 +1093,7 @@ export default {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
- req.settlement(this.formobj).then((res) => {
+ req.settle(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '结算成功' })
this.handleReturn('true')
@@ -1221,6 +1220,7 @@ export default {
},
showReSettleBtn: true
}
+ this.settleVisible = false
this.submitdisabled = false
this.$emit('doback')
}
diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue
index a8985f38b3..d6a35ca46c 100644
--- a/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue
+++ b/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue
@@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar'
import req from '@/api/operation/repairbill'
import repairbillAdd from './repairbillAdd'
import repairbillInfo from './repairbillInfo'
+import { typeValues } from '@/api/Common/dictcommons'
export default {
name: 'RepairBYLeaveFactory',
@@ -160,13 +161,6 @@ export default {
return {
btndisabled: false,
btnList: [
- {
- type: 'primary',
- size: 'small',
- icon: 'plus',
- btnKey: 'toAdd',
- btnLabel: '新增'
- },
{
type: 'primary',
size: 'small',
@@ -195,20 +189,7 @@ export default {
tableKey: 0,
list: [],
sids: [], // 用于导出的时候保存已选择的SIDs
- billType_list: [
- {
- dictKey: '0',
- dictValue: '正常工单'
- },
- {
- dictKey: '1',
- dictValue: '保险理赔'
- },
- {
- dictKey: '2',
- dictValue: '协议单位'
- }
- ],
+ billType_list: [],
state_list: [
{
dictKey: '1',
@@ -216,7 +197,7 @@ export default {
},
{
dictKey: '0',
- dictValue: '是'
+ dictValue: '否'
}
],
FormLoading: false,
@@ -224,7 +205,7 @@ export default {
// 翻页
listQuery: {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -258,12 +239,20 @@ export default {
},
created() {
// 初始化变量
+ this.init()
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
+ init() {
+ typeValues({ type: 'billType' }).then((res) => {
+ if (res.success) {
+ this.billType_list = res.data
+ }
+ })
+ },
// 搜索条件效果
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@@ -276,9 +265,6 @@ export default {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
- case 'toAdd':
- this.toAdd()
- break
case 'toEdit':
this.toEdit()
break
@@ -333,7 +319,7 @@ export default {
handleReset() {
this.listQuery = {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -365,13 +351,13 @@ export default {
}
this.getList()
},
- toAdd() {
- this.viewState = 2
- this.$refs['divAdd'].showAdd()
- },
toEdit() {
- this.viewState = 3
- this.$refs['divAdd'].showEdit()
+ if (this.sids.length === 1) {
+ this.viewState = 3
+ this.$refs['divAdd'].showEdit(this.sids[0])
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
+ }
},
toInfo(row) {
this.viewState = 4
diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillByBeCompleted.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillByBeCompleted.vue
index f8f0570c55..f8e9399dc8 100644
--- a/yxt-as-ui/src/views/operation/repairbill/repairbillByBeCompleted.vue
+++ b/yxt-as-ui/src/views/operation/repairbill/repairbillByBeCompleted.vue
@@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar'
import req from '@/api/operation/repairbill'
import repairbillAdd from './repairbillAdd'
import repairbillInfo from './repairbillInfo'
+import { typeValues } from '@/api/Common/dictcommons'
export default {
name: 'RepairBillByCompleted',
@@ -160,13 +161,6 @@ export default {
return {
btndisabled: false,
btnList: [
- {
- type: 'primary',
- size: 'small',
- icon: 'plus',
- btnKey: 'toAdd',
- btnLabel: '新增'
- },
{
type: 'primary',
size: 'small',
@@ -195,20 +189,7 @@ export default {
tableKey: 0,
list: [],
sids: [], // 用于导出的时候保存已选择的SIDs
- billType_list: [
- {
- dictKey: '0',
- dictValue: '正常工单'
- },
- {
- dictKey: '1',
- dictValue: '保险理赔'
- },
- {
- dictKey: '2',
- dictValue: '协议单位'
- }
- ],
+ billType_list: [],
state_list: [
{
dictKey: '1',
@@ -216,7 +197,7 @@ export default {
},
{
dictKey: '0',
- dictValue: '是'
+ dictValue: '否'
}
],
FormLoading: false,
@@ -224,7 +205,7 @@ export default {
// 翻页
listQuery: {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -258,12 +239,20 @@ export default {
},
created() {
// 初始化变量
+ this.init()
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
+ init() {
+ typeValues({ type: 'billType' }).then((res) => {
+ if (res.success) {
+ this.billType_list = res.data
+ }
+ })
+ },
// 搜索条件效果
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@@ -276,9 +265,6 @@ export default {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
- case 'toAdd':
- this.toAdd()
- break
case 'toEdit':
this.toEdit()
break
@@ -333,7 +319,7 @@ export default {
handleReset() {
this.listQuery = {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -365,13 +351,13 @@ export default {
}
this.getList()
},
- toAdd() {
- this.viewState = 2
- this.$refs['divAdd'].showAdd()
- },
toEdit() {
- this.viewState = 3
- this.$refs['divAdd'].showEdit()
+ if (this.sids.length === 1) {
+ this.viewState = 3
+ this.$refs['divAdd'].showEdit(this.sids[0])
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
+ }
},
toInfo(row) {
this.viewState = 4
diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillByMaintain.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillByMaintain.vue
index 75809fbae7..658d316334 100644
--- a/yxt-as-ui/src/views/operation/repairbill/repairbillByMaintain.vue
+++ b/yxt-as-ui/src/views/operation/repairbill/repairbillByMaintain.vue
@@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar'
import req from '@/api/operation/repairbill'
import repairbillAdd from './repairbillAdd'
import repairbillInfo from './repairbillInfo'
+import {typeValues} from "@/api/Common/dictcommons";
export default {
name: 'RepairBillByMaintain',
@@ -160,13 +161,6 @@ export default {
return {
btndisabled: false,
btnList: [
- {
- type: 'primary',
- size: 'small',
- icon: 'plus',
- btnKey: 'toAdd',
- btnLabel: '新增'
- },
{
type: 'primary',
size: 'small',
@@ -195,20 +189,7 @@ export default {
tableKey: 0,
list: [],
sids: [], // 用于导出的时候保存已选择的SIDs
- billType_list: [
- {
- dictKey: '0',
- dictValue: '正常工单'
- },
- {
- dictKey: '1',
- dictValue: '保险理赔'
- },
- {
- dictKey: '2',
- dictValue: '协议单位'
- }
- ],
+ billType_list: [],
state_list: [
{
dictKey: '1',
@@ -216,7 +197,7 @@ export default {
},
{
dictKey: '0',
- dictValue: '是'
+ dictValue: '否'
}
],
FormLoading: false,
@@ -224,7 +205,7 @@ export default {
// 翻页
listQuery: {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -258,12 +239,20 @@ export default {
},
created() {
// 初始化变量
+ this.init()
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
+ init() {
+ typeValues({ type: 'billType' }).then((res) => {
+ if (res.success) {
+ this.billType_list = res.data
+ }
+ })
+ },
// 搜索条件效果
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@@ -276,9 +265,6 @@ export default {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
- case 'toAdd':
- this.toAdd()
- break
case 'toEdit':
this.toEdit()
break
@@ -333,7 +319,7 @@ export default {
handleReset() {
this.listQuery = {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -365,13 +351,13 @@ export default {
}
this.getList()
},
- toAdd() {
- this.viewState = 2
- this.$refs['divAdd'].showAdd()
- },
toEdit() {
- this.viewState = 3
- this.$refs['divAdd'].showEdit()
+ if (this.sids.length === 1) {
+ this.viewState = 3
+ this.$refs['divAdd'].showEdit(this.sids[0])
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
+ }
},
toInfo(row) {
this.viewState = 4
diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillBySendWork.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillBySendWork.vue
index aebb36169c..7496012378 100644
--- a/yxt-as-ui/src/views/operation/repairbill/repairbillBySendWork.vue
+++ b/yxt-as-ui/src/views/operation/repairbill/repairbillBySendWork.vue
@@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar'
import req from '@/api/operation/repairbill'
import repairbillAdd from './repairbillAdd'
import repairbillInfo from './repairbillInfo'
+import { typeValues } from '@/api/Common/dictcommons'
export default {
name: 'RepairBillBySendWork',
@@ -160,13 +161,6 @@ export default {
return {
btndisabled: false,
btnList: [
- {
- type: 'primary',
- size: 'small',
- icon: 'plus',
- btnKey: 'toAdd',
- btnLabel: '新增'
- },
{
type: 'primary',
size: 'small',
@@ -195,20 +189,7 @@ export default {
tableKey: 0,
list: [],
sids: [], // 用于导出的时候保存已选择的SIDs
- billType_list: [
- {
- dictKey: '0',
- dictValue: '正常工单'
- },
- {
- dictKey: '1',
- dictValue: '保险理赔'
- },
- {
- dictKey: '2',
- dictValue: '协议单位'
- }
- ],
+ billType_list: [],
state_list: [
{
dictKey: '1',
@@ -216,7 +197,7 @@ export default {
},
{
dictKey: '0',
- dictValue: '是'
+ dictValue: '否'
}
],
FormLoading: false,
@@ -224,7 +205,7 @@ export default {
// 翻页
listQuery: {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -258,12 +239,20 @@ export default {
},
created() {
// 初始化变量
+ this.init()
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
+ init() {
+ typeValues({ type: 'billType' }).then((res) => {
+ if (res.success) {
+ this.billType_list = res.data
+ }
+ })
+ },
// 搜索条件效果
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@@ -276,9 +265,6 @@ export default {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
- case 'toAdd':
- this.toAdd()
- break
case 'toEdit':
this.toEdit()
break
@@ -333,7 +319,7 @@ export default {
handleReset() {
this.listQuery = {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -365,13 +351,13 @@ export default {
}
this.getList()
},
- toAdd() {
- this.viewState = 2
- this.$refs['divAdd'].showAdd()
- },
toEdit() {
- this.viewState = 3
- this.$refs['divAdd'].showEdit()
+ if (this.sids.length === 1) {
+ this.viewState = 3
+ this.$refs['divAdd'].showEdit(this.sids[0])
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
+ }
},
toInfo(row) {
this.viewState = 4
diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue
index ef629b3ab7..34d0cbe26a 100644
--- a/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue
+++ b/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue
@@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar'
import req from '@/api/operation/repairbill'
import repairbillAdd from './repairbillAdd'
import repairbillInfo from './repairbillInfo'
+import { typeValues } from '@/api/Common/dictcommons'
export default {
name: 'RepairBillBySettleAccounts',
@@ -160,13 +161,6 @@ export default {
return {
btndisabled: false,
btnList: [
- {
- type: 'primary',
- size: 'small',
- icon: 'plus',
- btnKey: 'toAdd',
- btnLabel: '新增'
- },
{
type: 'primary',
size: 'small',
@@ -195,20 +189,7 @@ export default {
tableKey: 0,
list: [],
sids: [], // 用于导出的时候保存已选择的SIDs
- billType_list: [
- {
- dictKey: '0',
- dictValue: '正常工单'
- },
- {
- dictKey: '1',
- dictValue: '保险理赔'
- },
- {
- dictKey: '2',
- dictValue: '协议单位'
- }
- ],
+ billType_list: [],
state_list: [
{
dictKey: '1',
@@ -216,7 +197,7 @@ export default {
},
{
dictKey: '0',
- dictValue: '是'
+ dictValue: '否'
}
],
FormLoading: false,
@@ -224,7 +205,7 @@ export default {
// 翻页
listQuery: {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -258,12 +239,20 @@ export default {
},
created() {
// 初始化变量
+ this.init()
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
+ init() {
+ typeValues({ type: 'billType' }).then((res) => {
+ if (res.success) {
+ this.billType_list = res.data
+ }
+ })
+ },
// 搜索条件效果
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@@ -276,9 +265,6 @@ export default {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
- case 'toAdd':
- this.toAdd()
- break
case 'toEdit':
this.toEdit()
break
@@ -333,7 +319,7 @@ export default {
handleReset() {
this.listQuery = {
current: 1,
- size: 10,
+ size: 5,
total: 0,
params: {
startTime: '',
@@ -365,13 +351,13 @@ export default {
}
this.getList()
},
- toAdd() {
- this.viewState = 2
- this.$refs['divAdd'].showAdd()
- },
toEdit() {
- this.viewState = 3
- this.$refs['divAdd'].showEdit()
+ if (this.sids.length === 1) {
+ this.viewState = 3
+ this.$refs['divAdd'].showEdit(this.sids[0])
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
+ }
},
toInfo(row) {
this.viewState = 4
diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue
index 3fa465871d..1071c960d0 100644
--- a/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue
+++ b/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue
@@ -4,6 +4,7 @@
@@ -271,14 +272,19 @@
+