|
|
@ -136,6 +136,8 @@ |
|
|
|
<repairbillAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/> |
|
|
|
<!-- 详情 --> |
|
|
|
<repairbillInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" /> |
|
|
|
<!-- 欠款出厂 --> |
|
|
|
<arrearsleavefactoryAdd v-show="viewState == 5" ref="divQKCC" @doback="resetState" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -144,9 +146,11 @@ import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
import req from '@/api/operation/repairbill' |
|
|
|
import arrearsleavefactory from '@/api/operation/arrearsleavefactory' |
|
|
|
import { typeValues } from '@/api/Common/dictcommons' |
|
|
|
import repairbillAdd from './repairbillAdd' |
|
|
|
import repairbillInfo from './repairbillInfo' |
|
|
|
import { typeValues } from '@/api/Common/dictcommons' |
|
|
|
import arrearsleavefactoryAdd from '../arrearsleavefactory/arrearsleavefactoryAdd' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'RepairBillBySettleAccounts', |
|
|
@ -155,7 +159,8 @@ export default { |
|
|
|
pageye, |
|
|
|
ButtonBar, |
|
|
|
repairbillAdd, |
|
|
|
repairbillInfo |
|
|
|
repairbillInfo, |
|
|
|
arrearsleavefactoryAdd |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -168,6 +173,13 @@ export default { |
|
|
|
btnKey: 'toEdit', |
|
|
|
btnLabel: '编辑' |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'primary', |
|
|
|
size: 'small', |
|
|
|
icon: '', |
|
|
|
btnKey: 'leaveFactory', |
|
|
|
btnLabel: '欠款出厂' |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'danger', |
|
|
|
size: 'small', |
|
|
@ -189,6 +201,7 @@ export default { |
|
|
|
tableKey: 0, |
|
|
|
list: [], |
|
|
|
sids: [], // 用于导出的时候保存已选择的SIDs |
|
|
|
multipleSelection: [], |
|
|
|
billType_list: [], |
|
|
|
state_list: [ |
|
|
|
{ |
|
|
@ -268,6 +281,9 @@ export default { |
|
|
|
case 'toEdit': |
|
|
|
this.toEdit() |
|
|
|
break |
|
|
|
case 'leaveFactory': |
|
|
|
this.leaveFactory() |
|
|
|
break |
|
|
|
case 'doDel': |
|
|
|
this.doDel() |
|
|
|
break |
|
|
@ -281,6 +297,7 @@ export default { |
|
|
|
// 信息条数 获取点击时当前的sid |
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
|
this.multipleSelection = row |
|
|
|
row.forEach(element => { |
|
|
|
aa.push(element.sid) |
|
|
|
}) |
|
|
@ -359,6 +376,22 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) |
|
|
|
} |
|
|
|
}, |
|
|
|
leaveFactory() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
if (this.multipleSelection[0].subject === '保外') { |
|
|
|
arrearsleavefactory.init(this.sids[0]).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.viewState = 5 |
|
|
|
this.$refs['divQKCC'].showAdd(res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择科目为保外的记录进行操作' }) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) |
|
|
|
} |
|
|
|
}, |
|
|
|
toInfo(row) { |
|
|
|
this.viewState = 4 |
|
|
|
this.$refs['divInfo'].showInfo(row) |
|
|
|