|
|
@@ -0,0 +1,660 @@
|
|
|
+<template>
|
|
|
+ <div id="addOrder">
|
|
|
+ <h5>基础信息</h5>
|
|
|
+ <div class="boxsSTTs">
|
|
|
+ <h5 class="fengs">业务信息</h5>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-form label-position="right" label-width="120px" :model="listData">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="业务归属人" prop="businessOwner">
|
|
|
+ <el-input v-model="listData.businessOwner"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="渠道来源" prop="source">
|
|
|
+ <el-select v-model="listData.source" placeholder="请选择渠道来源">
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in paysource"
|
|
|
+ :key="index"
|
|
|
+ :label="item.sourceName"
|
|
|
+ :value="item.sourceName"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="归属部门" prop="dept">
|
|
|
+ <el-input v-model="listData.dept"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="到访校区" prop="school">
|
|
|
+ <el-select v-model="listData.school" placeholder="请选择到访校区">
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in payvisit"
|
|
|
+ :key="index"
|
|
|
+ :label="item.visitName"
|
|
|
+ :value="item.visitName"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-form>
|
|
|
+ </el-row>
|
|
|
+ <h5 class="fengs">学员信息</h5>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-form
|
|
|
+ ref="listData"
|
|
|
+ label-position="right"
|
|
|
+ label-width="120px"
|
|
|
+ :model="listData"
|
|
|
+ :rules="rulesItem"
|
|
|
+ >
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="手机号码" prop="telphone">
|
|
|
+ <el-input
|
|
|
+ :disabled="disabTel"
|
|
|
+ v-model="listData.telphone"
|
|
|
+ @change="getUserInfos(listData.telphone)"
|
|
|
+ >
|
|
|
+ <el-button @click="clearForm" slot="append">清除</el-button>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="身份证号码" prop="idCard">
|
|
|
+ <el-input disabled v-model="listData.idCard"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="姓名" prop="realname">
|
|
|
+ <el-input disabled v-model="listData.realname"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="所在公司" prop="company">
|
|
|
+ <el-input v-model="listData.company"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="收件地址" prop="address">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :rows="2"
|
|
|
+ v-model="listData.address"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-form>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <h5>
|
|
|
+ 商品列表<el-button
|
|
|
+ style="margin-left: 15px"
|
|
|
+ size="small"
|
|
|
+ @click="editAddBoxs"
|
|
|
+ >添加</el-button
|
|
|
+ >
|
|
|
+ </h5>
|
|
|
+ <el-table
|
|
|
+ :data="tableData"
|
|
|
+ border
|
|
|
+ :header-cell-style="{
|
|
|
+ 'background-color': '#eee',
|
|
|
+ padding: '8px',
|
|
|
+ color: '#333',
|
|
|
+ }"
|
|
|
+ :default-sort="{ prop: 'sort', order: 'ascending' }"
|
|
|
+ >
|
|
|
+ <template v-for="(item, index) in tableSetTSB">
|
|
|
+ <el-table-column
|
|
|
+ :width="item.width"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ align="center"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ header-align="center"
|
|
|
+ :sortable="item.prop === 'sort'"
|
|
|
+ sort-by="sort"
|
|
|
+ :prop="item.prop"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="item.scope === 'ywcs'">
|
|
|
+ {{ zuHe(scope.row) }}
|
|
|
+ </span>
|
|
|
+ <div v-else-if="item.scope === 'activeType'" class="_sty">
|
|
|
+ <el-select
|
|
|
+ class="mar_b10"
|
|
|
+ v-if="getDs(scope.row['templateType'], '班级')"
|
|
|
+ v-model="scope.row['gradeJson']"
|
|
|
+ placeholder="请选择班级"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="items in options"
|
|
|
+ :key="items.value"
|
|
|
+ :label="items.label"
|
|
|
+ :value="items.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select
|
|
|
+ @change="changeKQ(scope.$index, $event)"
|
|
|
+ class="mar_b10"
|
|
|
+ v-if="getDs(scope.row['templateType'], '考期')"
|
|
|
+ v-model="scope.row['examDateJsonId']"
|
|
|
+ placeholder="请选择考期"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="items in courseExamine"
|
|
|
+ :key="items.id"
|
|
|
+ :label="items.examineName"
|
|
|
+ :value="items.id"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <div
|
|
|
+ class="mar_b10"
|
|
|
+ v-if="getDs(scope.row['templateType'], '报考地区')"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ style="width: 50%"
|
|
|
+ v-model="scope.row.areaId"
|
|
|
+ placeholder="省"
|
|
|
+ @change="changeArea(scope.$index, $event)"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="items in areas"
|
|
|
+ :key="items.areaId"
|
|
|
+ :label="items.areaName"
|
|
|
+ :value="items.areaId"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select
|
|
|
+ v-if="scope.row.goodsInputData.applyAreasJson.areaId"
|
|
|
+ style="width: 50%"
|
|
|
+ v-model="scope.row.cityId"
|
|
|
+ placeholder="地区"
|
|
|
+ @change="changeCity(scope.$index, $event)"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="items in cityListCopy"
|
|
|
+ :key="items.areaId"
|
|
|
+ :label="items.areaName"
|
|
|
+ :value="items.areaId"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span v-else>{{ scope.row[item.prop] }}</span></template
|
|
|
+ >
|
|
|
+ </el-table-column></template
|
|
|
+ >
|
|
|
+ <el-table-column label="操作" align="center" fixed="right" width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" @click="del(scope.row, scope.$index)"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div style="font-size: 14px; margin: 10px 0px">
|
|
|
+ 收费方式:<el-radio-group v-model="listData.chargingType">
|
|
|
+ <el-radio :label="1">即刻收费</el-radio>
|
|
|
+ <el-radio :label="2">稍后收费</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+ <div style="text-align: center">
|
|
|
+ <el-button @click="clearBtns">取消</el-button>
|
|
|
+ <el-button @click="submitForm('listData')">确定</el-button>
|
|
|
+ </div>
|
|
|
+ <el-dialog
|
|
|
+ title="添加商品"
|
|
|
+ :visible.sync="dialogVisibleTableBoxs"
|
|
|
+ width="900px"
|
|
|
+ >
|
|
|
+ <el-table
|
|
|
+ ref="multipleTable"
|
|
|
+ :data="boxtableData"
|
|
|
+ border
|
|
|
+ @select-all="selectAll"
|
|
|
+ @select="select"
|
|
|
+ :row-key="getRowKeys"
|
|
|
+ :header-cell-style="{
|
|
|
+ 'background-color': '#eee',
|
|
|
+ padding: '8px',
|
|
|
+ color: '#333',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ type="selection"
|
|
|
+ width="55"
|
|
|
+ header-align="center"
|
|
|
+ :selectable="checkboxT"
|
|
|
+ :reserve-selection="true"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <template v-for="(item, index) in tableSetTSBBOX">
|
|
|
+ <el-table-column
|
|
|
+ v-if="item.scope !== 'inputs'"
|
|
|
+ :width="item.width"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ align="center"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ header-align="center"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="item.scope === 'status'">
|
|
|
+ {{
|
|
|
+ scope.row[item.prop] === 1
|
|
|
+ ? "有效"
|
|
|
+ : scope.row[item.prop] === 0
|
|
|
+ ? "无效"
|
|
|
+ : "未知"
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.scope === 'goodsType'">
|
|
|
+ {{ getSwite(scope.row[item.prop]) }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.scope === 'ywcs'">
|
|
|
+ {{ zuHe(scope.row) }}
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row[item.prop] }}</span></template
|
|
|
+ >
|
|
|
+ </el-table-column></template
|
|
|
+ >
|
|
|
+ </el-table>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisibleTableBoxs = false">取 消</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ :disabled="activeLists.length === 0"
|
|
|
+ @click="submitTab"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { mapGetters } from "vuex";
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ listData: { realname: "", idCard: "", chargingType: 1 },
|
|
|
+ disabTel: false,
|
|
|
+ rulesItem: {
|
|
|
+ telphone: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请输入手机号码",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ validator(rule, value, callback) {
|
|
|
+ var reg =
|
|
|
+ /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/;
|
|
|
+ if (reg.test(value)) {
|
|
|
+ callback();
|
|
|
+ } else {
|
|
|
+ callback(new Error("请输入正确手机号码"));
|
|
|
+ }
|
|
|
+ },
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ tableData: [],
|
|
|
+ tableSetTSB: [
|
|
|
+ {
|
|
|
+ label: "商品编码",
|
|
|
+ prop: "code",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品业务层级",
|
|
|
+ scope: "ywcs",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品名称",
|
|
|
+ prop: "goodsName",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "请选择",
|
|
|
+ scope: "activeType",
|
|
|
+ width: "280",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品标准价格",
|
|
|
+ prop: "standPrice",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ dialogVisibleTableBoxs: false, //新增商品列表弹窗状态
|
|
|
+ boxtableData: [], //商品列表数据
|
|
|
+ tableSetTSBBOX: [
|
|
|
+ {
|
|
|
+ label: "商品编码",
|
|
|
+ prop: "code",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "年份",
|
|
|
+ prop: "year",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品名称",
|
|
|
+ prop: "goodsName",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "业务层次",
|
|
|
+ scope: "ywcs",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品类型",
|
|
|
+ prop: "goodsType",
|
|
|
+ scope: "goodsType",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "有效状态",
|
|
|
+ prop: "status",
|
|
|
+ scope: "status",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品标价",
|
|
|
+ prop: "standPrice",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ disCheckList: [], //商品列表禁选数据
|
|
|
+ activeLists: [],
|
|
|
+ options: [],
|
|
|
+ modelList: [],
|
|
|
+ cityListCopy: [],
|
|
|
+ cityList: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(["paysource", "payvisit", "courseExamine", "areas"]),
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.$api.inquireapplyCityList({ status: 1, areaType: 2 }).then((res) => {
|
|
|
+ this.cityList = res.rows;
|
|
|
+ });
|
|
|
+ this.$api.orderinputtemplatelist({ status: 1 }).then((res) => {
|
|
|
+ this.modelList = res.rows;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 手机号失去焦点查询
|
|
|
+ getUserInfos(tel) {
|
|
|
+ var self = this;
|
|
|
+ var phoneTest =
|
|
|
+ /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/;
|
|
|
+ if (phoneTest.test(tel)) {
|
|
|
+ this.$api.inquireappuserlists({ telphone: tel }).then((res) => {
|
|
|
+ if (res.total) {
|
|
|
+ self.listData.realname = res.rows[0].realname;
|
|
|
+ self.listData.idCard = res.rows[0].idCard;
|
|
|
+ self.disabTel = true;
|
|
|
+ self.listData.userId = res.rows[0].userId;
|
|
|
+ } else {
|
|
|
+ self.$message.warning("当前手机号用户不存在");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 清除手机号
|
|
|
+ clearForm() {
|
|
|
+ this.listData.telphone = "";
|
|
|
+ this.listData.realname = "";
|
|
|
+ this.listData.idCard = "";
|
|
|
+ this.listData.userId = "";
|
|
|
+ this.disabTel = false;
|
|
|
+ },
|
|
|
+ //删除商品列表
|
|
|
+ del(item, index) {
|
|
|
+ this.tableData.splice(index, 1);
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ },
|
|
|
+ //添加商品列表
|
|
|
+ editAddBoxs() {
|
|
|
+ var self = this;
|
|
|
+ this.$api
|
|
|
+ .inquireGoods({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ var aList = [];
|
|
|
+ this.tableData.map((item) => {
|
|
|
+ aList.push(item.goodsId);
|
|
|
+ });
|
|
|
+ this.disCheckList = aList;
|
|
|
+ this.boxtableData = res.rows;
|
|
|
+ this.dialogVisibleTableBoxs = true;
|
|
|
+ this.$nextTick(function () {
|
|
|
+ self.$refs.multipleTable.clearSelection();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ submitTab() {
|
|
|
+ if (this.activeLists.length === 0) {
|
|
|
+ this.dialogVisibleTableBoxs = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.activeLists.map((item) => {
|
|
|
+ item.goodsInputData = {};
|
|
|
+ if (item.templateType === "class") {
|
|
|
+ item.goodsInputData.gradeJson = {};
|
|
|
+ }
|
|
|
+ if (item.templateType === "apply") {
|
|
|
+ item.goodsInputData.applyAreasJson = {};
|
|
|
+ item.goodsInputData.examDateJson = {};
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.tableData = this.tableData.concat(this.activeLists);
|
|
|
+ this.dialogVisibleTableBoxs = false;
|
|
|
+ this.$message.success("添加成功");
|
|
|
+ this.activeLists = [];
|
|
|
+ },
|
|
|
+ selectAll(value) {
|
|
|
+ this.activeLists = value;
|
|
|
+ },
|
|
|
+ select(value) {
|
|
|
+ this.activeLists = value;
|
|
|
+ },
|
|
|
+ checkboxT(row, index) {
|
|
|
+ if (this.disCheckList.indexOf(row.goodsId) !== -1) {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getRowKeys(row) {
|
|
|
+ return row.goodsId;
|
|
|
+ },
|
|
|
+ //类型转换
|
|
|
+ getSwite(info) {
|
|
|
+ var ast = "";
|
|
|
+ switch (info) {
|
|
|
+ case 1:
|
|
|
+ ast = "视频";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ ast = "题库";
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ ast = "面授";
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ ast = "服务";
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ ast = "组合";
|
|
|
+ break;
|
|
|
+
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return ast;
|
|
|
+ },
|
|
|
+ // 业务层次组合
|
|
|
+ zuHe(item) {
|
|
|
+ var ast = [];
|
|
|
+ if (item.educationName) {
|
|
|
+ ast.push(item.educationName);
|
|
|
+ }
|
|
|
+ if (item.businessName) {
|
|
|
+ ast.push(item.businessName);
|
|
|
+ }
|
|
|
+ if (item.schoolName) {
|
|
|
+ ast.push(item.schoolName);
|
|
|
+ }
|
|
|
+ if (item.categoryName) {
|
|
|
+ ast.push(item.categoryName);
|
|
|
+ }
|
|
|
+ return ast.join(" — ");
|
|
|
+ },
|
|
|
+ getDs(tys, names) {
|
|
|
+ for (let i = 0; i < this.modelList.length; i++) {
|
|
|
+ if (this.modelList[i].type === tys) {
|
|
|
+ return this.modelList[i].name.indexOf(names) != -1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //确认提交
|
|
|
+ submitForm(formName) {
|
|
|
+ this.$refs[formName].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ if (!this.listData.idCard) {
|
|
|
+ this.$message.error("请输入有效的用户手机号码");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.submit();
|
|
|
+ } else {
|
|
|
+ console.log("error submit!!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ submit() {
|
|
|
+ var data = {};
|
|
|
+ data.orderBusiness = {
|
|
|
+ businessOwner: this.listData.businessOwner,
|
|
|
+ dept: this.listData.dept,
|
|
|
+ school: this.listData.school,
|
|
|
+ source: this.listData.source,
|
|
|
+ };
|
|
|
+ data.orderStudent = {
|
|
|
+ company: this.listData.company,
|
|
|
+ address: this.listData.address,
|
|
|
+ };
|
|
|
+ data.goodsRealPrice = this.listData.goodsPrice;
|
|
|
+ data.userId = this.listData.userId;
|
|
|
+ data.chargingType = this.listData.chargingType;
|
|
|
+ var ast = [];
|
|
|
+ this.tableData.map((item) => {
|
|
|
+ ast.push({
|
|
|
+ goodsPrice: item.standPrice,
|
|
|
+ goodsId: item.goodsId,
|
|
|
+ goodsInputData: item.goodsInputData,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ ast.map((item) => {
|
|
|
+ if (item.goodsInputData.applyAreasJson) {
|
|
|
+ item.goodsInputData.applyAreasJson = JSON.stringify(
|
|
|
+ item.goodsInputData.applyAreasJson
|
|
|
+ );
|
|
|
+ }
|
|
|
+ if (item.goodsInputData.examDateJson) {
|
|
|
+ item.goodsInputData.examDateJson = JSON.stringify(
|
|
|
+ item.goodsInputData.examDateJson
|
|
|
+ );
|
|
|
+ }
|
|
|
+ if (item.goodsInputData.gradeJson) {
|
|
|
+ item.goodsInputData.gradeJson = JSON.stringify(
|
|
|
+ item.goodsInputData.gradeJson
|
|
|
+ );
|
|
|
+ }
|
|
|
+ });
|
|
|
+ data.goodsList = ast;
|
|
|
+ this.$api.appOrder(data).then((res) => {
|
|
|
+ this.$message.success("提交成功");
|
|
|
+ if (data.chargingType == 1) {
|
|
|
+ this.$router.push({
|
|
|
+ path: "orderPrice",
|
|
|
+ query: {
|
|
|
+ id: res.data.oderId,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (data.chargingType == 2) {
|
|
|
+ this.$router.go(-1);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ console.log(data);
|
|
|
+ },
|
|
|
+ changeKQ(index, int) {
|
|
|
+ this.courseExamine.map((item) => {
|
|
|
+ if (item.id === int) {
|
|
|
+ this.tableData[index].goodsInputData.examDateJson = item;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ changeArea(index, int) {
|
|
|
+ var opst = [];
|
|
|
+ this.cityList.map((item) => {
|
|
|
+ if (item.parentId == int) {
|
|
|
+ opst.push(item);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.cityListCopy = opst;
|
|
|
+ this.areas.map((item) => {
|
|
|
+ if (item.areaId === int) {
|
|
|
+ this.tableData[index].goodsInputData.applyAreasJson.areaName =
|
|
|
+ item.areaName;
|
|
|
+ this.tableData[index].goodsInputData.applyAreasJson.areaId =
|
|
|
+ item.areaId;
|
|
|
+ if (this.tableData[index].cityId) {
|
|
|
+ this.tableData[index].cityId = "";
|
|
|
+ }
|
|
|
+ this.tableData[index].goodsInputData.applyAreasJson.cityName = "";
|
|
|
+ this.tableData[index].goodsInputData.applyAreasJson.cityId = "";
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ changeCity(index, int) {
|
|
|
+ this.cityList.map((item) => {
|
|
|
+ if (item.areaId === int) {
|
|
|
+ this.tableData[index].goodsInputData.applyAreasJson.cityName =
|
|
|
+ item.areaName;
|
|
|
+ this.tableData[index].goodsInputData.applyAreasJson.cityId =
|
|
|
+ item.areaId;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //取消
|
|
|
+ clearBtns() {
|
|
|
+ this.$router.go(-1);
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.boxsSTTs {
|
|
|
+ margin: 10px 0px;
|
|
|
+ border: 1px solid #a4a4a4;
|
|
|
+ border-top: 2px solid rgb(179, 204, 255);
|
|
|
+ padding: 20px 40px;
|
|
|
+}
|
|
|
+.fengs {
|
|
|
+ border-bottom: 1px dashed #a4a4a4;
|
|
|
+ color: #a4a4a4;
|
|
|
+ padding: 4px 0px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+}
|
|
|
+._sty {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.mar_b10 {
|
|
|
+ margin-bottom: 6px;
|
|
|
+}
|
|
|
+</style>
|