Commit 26c9e938 by 张权

删除远程实时搜索

1 parent a7dc770d
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</template> --> </template> -->
<!-- 选择框 --> <!-- 选择框 -->
<div v-else-if="item.type === 'select'"> <div v-else-if="item.type === 'select'">
<el-select :style="{ width: item.width || defaultWidth }" v-model="formObj[item.name]" :clearable="item.isClear || false" :placeholder="'请选择' + item.label" :filterable="!item.noFilter" :filter-method="item.keydownMethod" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)"> <el-select :style="{ width: item.width || defaultWidth }" v-model="formObj[item.name]" :clearable="item.isClear || false" :placeholder="'请选择' + item.label" :filterable="!item.noFilter" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)">
<el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]" :disabled="subItem.isDisabled || false"></el-option> <el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]" :disabled="subItem.isDisabled || false"></el-option>
</el-select> </el-select>
<slot :name="item.suffixSlot" :scope="item"></slot> <slot :name="item.suffixSlot" :scope="item"></slot>
......
...@@ -23,8 +23,8 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -23,8 +23,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$defaultStartDate = '2021-07-01' Vue.prototype.$defaultStartDate = '2021-07-01'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) // Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'mini-efc25b5b-6eb1-4017-99b2-45cdacfcfa04-rop' } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'mini-661113d4-8a4f-42b2-82d4-37d4d392ff98-rop' } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'mini-efc25b5b-6eb1-4017-99b2-45cdacfcfa04-rop' } }) Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'mini-661113d4-8a4f-42b2-82d4-37d4d392ff98-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'd986590e-22b5-436a-b6b5-5e09138d98e2' } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'd986590e-22b5-436a-b6b5-5e09138d98e2' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'd986590e-22b5-436a-b6b5-5e09138d98e2' } }) // Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'd986590e-22b5-436a-b6b5-5e09138d98e2' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
......
...@@ -423,9 +423,6 @@ export default { ...@@ -423,9 +423,6 @@ export default {
return item.userOneid == userOneid return item.userOneid == userOneid
}) })
this.editForm.actualSalesPerson = target.staffName this.editForm.actualSalesPerson = target.staffName
},
keydownMethod: (value)=>{
this.getSalePeople(value)
} }
}, },
{ {
...@@ -534,7 +531,7 @@ export default { ...@@ -534,7 +531,7 @@ export default {
created() { created() {
this.getAllVehicleBrand() this.getAllVehicleBrand()
this.getCarChildList(false, true) this.getCarChildList(false, true)
// this.getSalePeople() this.getSalePeople()
}, },
mounted() { mounted() {
...@@ -562,7 +559,7 @@ export default { ...@@ -562,7 +559,7 @@ export default {
}, },
methods: { methods: {
getSalePeople: utils.debounce(function(val){ getSalePeople(val){
const params = { const params = {
staffName: val ? val.trim() : '' staffName: val ? val.trim() : ''
// departmentId: '' // departmentId: ''
...@@ -577,7 +574,7 @@ export default { ...@@ -577,7 +574,7 @@ export default {
}) })
} }
}) })
}), },
setTableMarginLeft(subItem,subItemId){ setTableMarginLeft(subItem,subItemId){
let productW = document.querySelector('.select-product').offsetWidth let productW = document.querySelector('.select-product').offsetWidth
let id = -1 let id = -1
...@@ -588,12 +585,13 @@ export default { ...@@ -588,12 +585,13 @@ export default {
} }
let leftId = 0 let leftId = 0
if( productW < 1050){ if( productW < 1050){
return 20 leftId = 0
}else if(productW < 1560){ }else if(productW < 1560){
return (id+1)%2 === 0 ? 20 : (id+1)%2*510 leftId = (id+1)%2 === 0 ? 0 : (id+1)%2
}else{ }else{
return (id+2)%3 === 0 ? 20 : (id+2)%3*510 leftId = (id+2)%3 === 0 ? 0 : (id+2)%3
} }
return 20 + leftId*510
}, },
setDisabled(partDisabledList = []) { setDisabled(partDisabledList = []) {
var list = ['Car', 'User', 'Pro', 'Other'] var list = ['Car', 'User', 'Pro', 'Other']
...@@ -634,7 +632,6 @@ export default { ...@@ -634,7 +632,6 @@ export default {
}, },
getInfo() { getInfo() {
this.$apis.ghBeforeSale.getEquityApi({ contractNo: this.routeInfo.contractNo }).then(res => { this.$apis.ghBeforeSale.getEquityApi({ contractNo: this.routeInfo.contractNo }).then(res => {
this.getSalePeople(res.actualSalesPerson)
this.editForm = { this.editForm = {
...res ...res
} }
...@@ -1020,7 +1017,6 @@ export default { ...@@ -1020,7 +1017,6 @@ export default {
var params = this.getParams() var params = this.getParams()
params.operationType = 1 params.operationType = 1
if (['2', '3', '4'].includes(this.routeInfo.addOrEdit)) { if (['2', '3', '4'].includes(this.routeInfo.addOrEdit)) {
console.log(this.editForm,1122)
if (this.routeInfo.addOrEdit == '4' && this.editForm.orderStatus != 3) { if (this.routeInfo.addOrEdit == '4' && this.editForm.orderStatus != 3) {
params.contractNo = '' params.contractNo = ''
params.oldContractNo = this.routeInfo.contractNo params.oldContractNo = this.routeInfo.contractNo
...@@ -1067,7 +1063,10 @@ export default { ...@@ -1067,7 +1063,10 @@ export default {
invoicePrice: '', invoicePrice: '',
seatesNum: 5, seatesNum: 5,
billingDate: new Date() billingDate: new Date()
} },
actualSalesPerson:'',
actualSalesPersonId:'',
insuranceType: 'i'
} }
this.$apis.ghBeforeSale.getDefaultCarbrandApi({}).then(res => { this.$apis.ghBeforeSale.getDefaultCarbrandApi({}).then(res => {
if (res) { if (res) {
......
...@@ -575,18 +575,32 @@ export default { ...@@ -575,18 +575,32 @@ export default {
apiName: apiName, apiName: apiName,
apiParams: apiParams apiParams: apiParams
} }
if (title) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleSecondConfirm()
})
return
}
this.handleSecondCancel() this.handleSecondCancel()
}, },
handleSecondConfirm() { handleSecondConfirm() {
this.$apis[this.secondObj.apiModule][this.secondObj.apiName](this.secondObj.apiParams).then(res => { this.$apis[this.secondObj.apiModule][this.secondObj.apiName](this.secondObj.apiParams).then(res => {
this.handleSecondCancel() // this.handleSecondCancel()
this.isTipVisible = true // this.isTipVisible = true
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
this.editNotify = res this.editNotify = res
clearTimeout(this.timer) // clearTimeout(this.timer)
this.timer = setTimeout(() => { // this.timer = setTimeout(() => {
this.isTipVisible = false // this.isTipVisible = false
}, this.editNotify.code == '0' ? 1500 : 3000) // }, this.editNotify.code == '0' ? 1500 : 3000)
if (res.code == '0') { if (res.code == '0') {
this.handleSearch() this.handleSearch()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!