pengjun 3 days ago
parent
commit
f58a7b0f43
  1. 38
      src/components/doctorCheck/CheckItemList.vue
  2. 4
      src/views/fee-settings/cardRegister.vue

38
src/components/doctorCheck/CheckItemList.vue

@ -834,32 +834,22 @@ export default {
// //
clickResult(item) { clickResult(item) {
let result = [];
let moreResult = this.moreResult.result || ''
// console.log('this.moreResult',JSON.stringify(this.moreResult)) // console.log('this.moreResult',JSON.stringify(this.moreResult))
// console.log('item',item) // console.log('item',item)
// == // ==
if (this.moreResult.result == this.moreResult.defaultResult) {
if (!moreResult || moreResult == this.moreResult.defaultResult ) {
this.moreResult.result = item.result this.moreResult.result = item.result
} else {
if (this.moreResult.result) result = this.moreResult.result.split(";");
//
if (this.LocalConfig.doctorCheck.isSplitChooseResult == "Y" && result.indexOf(item.result) > -1)
return;
if (this.LocalConfig.doctorCheck.isSplitChooseResult == "Y" || result.length == 0) {
result.push(item.result);
} else {
result[result.length - 1] = result[result.length - 1] + item.result;
}
let ret = "";
result.forEach((e, i) => {
let splitStr = ";";
if (i == 0) splitStr = "";
ret += splitStr + e;
});
this.moreResult.result = ret;
this.selection.start = length(item.result) - 1
this.selection.end = this.selection.start
}else if(moreResult.includes(item.result)){
//
}else {
let choosedResult = item.result
if(this.LocalConfig.doctorCheck.isSplitChooseResult == 'Y') choosedResult = ';' + choosedResult
this.insertSymbols(choosedResult)
} }
}, },
// //
@ -1111,7 +1101,7 @@ export default {
}); });
}, },
//
// ()
insertSymbols(symbols) { insertSymbols(symbols) {
let result = this.moreResult.result || ""; let result = this.moreResult.result || "";
if (result) { if (result) {
@ -1123,8 +1113,8 @@ export default {
result = symbols; result = symbols;
} }
this.moreResult.result = result; this.moreResult.result = result;
this.selection.start++;
this.selection.end++;
this.selection.start = this.selection.start + length(symbols);
this.selection.end = this.selection.start;
}, },
// //
getCaretPosition() { getCaretPosition() {

4
src/views/fee-settings/cardRegister.vue

@ -1000,10 +1000,10 @@ export default {
this.loadOptsInit = Object.assign({}, this.loadOpts); this.loadOptsInit = Object.assign({}, this.loadOpts);
postapi("/api/app/cardregister/getcardregisterlist", body).then((res) => { postapi("/api/app/cardregister/getcardregisterlist", body).then((res) => {
if (res.code != -1) {
if (res.code > -1) {
this.dataList = res.data.items; this.dataList = res.data.items;
this.loadOpts.totalCount = res.data.totalCount this.loadOpts.totalCount = res.data.totalCount
this.loadOpts.skipCount = 1
//this.loadOpts.skipCount = 0
} }
}); });
}, },

Loading…
Cancel
Save