|
|
|
|
@ -117,9 +117,11 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
v-model="scope.row.status"
|
|
|
|
|
placeholder="状态标识"
|
|
|
|
|
@change="e => {
|
|
|
|
|
save(scope.row).then(res => getCustomers)
|
|
|
|
|
}"
|
|
|
|
|
@change="
|
|
|
|
|
(e) => {
|
|
|
|
|
save(scope.row).then((res) => getCustomers);
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in [
|
|
|
|
|
@ -156,11 +158,11 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getList, destroy,save } from "@/api/customer";
|
|
|
|
|
import { getList, destroy, save } from "@/api/customer";
|
|
|
|
|
import { getparameter } from "@/api/system/dictionary";
|
|
|
|
|
import { getList as getUnit } from "@/api/payUnit";
|
|
|
|
|
import { getList as getTypes } from "@/api/productType";
|
|
|
|
|
import { deepCopy } from "@/utils";
|
|
|
|
|
import { deepCopy, getBirth, getAgeByIdcard } from "@/utils";
|
|
|
|
|
import { getAuthAreas, getAuthTypes } from "@/utils/auth";
|
|
|
|
|
|
|
|
|
|
import addCustomer from "@/views/customer/component/addCustomer";
|
|
|
|
|
@ -276,9 +278,19 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "姓名",
|
|
|
|
|
width: "180",
|
|
|
|
|
customFn: (row) => {
|
|
|
|
|
let getColor = () => {
|
|
|
|
|
if (getAgeByIdcard(row.idcard) >= row.max_age) {
|
|
|
|
|
return "orange";
|
|
|
|
|
}
|
|
|
|
|
if (row.near_age) {
|
|
|
|
|
return "yellow";
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return <span style={{ color: getColor() }}>{row.name}</span>;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "订单产品",
|
|
|
|
|
@ -451,7 +463,7 @@ export default {
|
|
|
|
|
async mounted() {
|
|
|
|
|
await this.getTypes();
|
|
|
|
|
await this.getCustomers();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|