Browse Source

完善维修单管理

master
yunuo970428 11 months ago
parent
commit
bfa685e548
  1. 18
      yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue

18
yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue

@ -7,7 +7,7 @@
<el-button type="primary" size="small" :disabled="submitdisabled" @click="selectCustomer()" v-show="formobj.nodeName == '登记'">选择客户</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()" v-show="formobj.nodeName !== '结算'">提交</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="toSendBack" v-show="formobj.nodeName !== '结算' && formobj.nodeName !== '出厂'">退回</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="toSendBack" v-show="formobj.nodeName !== '结算' && formobj.nodeName !== '登记' && formobj.nodeName !== '出厂'">退回</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="confirmCLF()" v-show="formobj.nodeName == '结算' && formobj.subject == '保内'">确认材料费</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="toPrintSettle()" v-show="formobj.nodeName == '结算' && formobj.subject == '保外'">打印结算单</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="settleAccounts()" v-show="formobj.nodeName == '结算'">结算</el-button>
@ -51,7 +51,7 @@
<div class="span-sty">索赔厂家</div>
<el-form-item>
<el-select class="addinputInfo" :disabled="formobj.nodeName == '维修' || formobj.nodeName == '结算' || formobj.nodeName == '出厂'" v-model="formobj.claimManufacturer" placeholder="请选择" @change="changeClaimManufacturer" clearable filterable>
<el-option v-for="item in claimManufacturer_list" :key="item.claimManufacturerSid" :label="item.claimManufacturer" :value="item.claimManufacturer"></el-option>
<el-option v-for="item in claimManufacturer_list" :key="item.sid" :label="item.claiManuName" :value="item.claiManuName"></el-option>
</el-select>
</el-form-item>
</el-col>
@ -545,7 +545,7 @@
import req from '@/api/operation/repairbill'
import maintenanceitem from '@/api/basicinformation/maintenanceitem'
import additionitem from '@/api/basicinformation/additionitem'
import { selAllByOrgSidPath, selSubjectInfo, getGroupList, typeValues } from '@/api/Common/dictcommons'
import { selAllByOrgSidPath, selSubjectInfo, getGroupList, typeValues, getListByUseOrgSid } from '@/api/Common/dictcommons'
import customer from '../../operation/preregistration/relation/customer'
import { getStorage } from '@/utils/auth'
@ -859,6 +859,11 @@ export default {
this.group_list = resp.data
}
})
getListByUseOrgSid({ useOrgSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) }).then((resp) => {
if (resp.success) {
this.claimManufacturer_list = resp.data
}
})
selAllByOrgSidPath({ orgSidPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.user_list = resp.data
@ -914,6 +919,9 @@ export default {
req.fetchBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.fileName.length > 0) {
this.fileList = this.formobj.fileName
}
}
})
},
@ -949,9 +957,9 @@ export default {
}
},
changeClaimManufacturer(value) {
const choose = this.claimManufacturer_list.filter((item) => item.claimManufacturer === value)
const choose = this.claimManufacturer_list.filter((item) => item.claiManuName === value)
if (choose.length > 0 && choose !== null) {
this.formobj.claimManufacturerSid = choose[0].claimManufacturerSid
this.formobj.claimManufacturerSid = choose[0].sid
} else {
this.formobj.claimManufacturerSid = ''
}

Loading…
Cancel
Save