|
@@ -199,7 +199,7 @@
|
|
size="small"
|
|
size="small"
|
|
@change="changeWallet(scope.$index)"
|
|
@change="changeWallet(scope.$index)"
|
|
>
|
|
>
|
|
- <el-option label="全部" value=""></el-option>
|
|
|
|
|
|
+
|
|
<el-option
|
|
<el-option
|
|
v-for="item in scope.row.rebateWallets"
|
|
v-for="item in scope.row.rebateWallets"
|
|
:key="item.customerWalletId"
|
|
:key="item.customerWalletId"
|
|
@@ -253,7 +253,7 @@
|
|
placeholder="选择现金钱包"
|
|
placeholder="选择现金钱包"
|
|
size="small"
|
|
size="small"
|
|
>
|
|
>
|
|
- <el-option label="全部" value=""></el-option>
|
|
|
|
|
|
+
|
|
<el-option
|
|
<el-option
|
|
v-for="item in scope.row.wallets"
|
|
v-for="item in scope.row.wallets"
|
|
:key="item.customerWalletId"
|
|
:key="item.customerWalletId"
|
|
@@ -368,7 +368,7 @@
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="mainForm.date"
|
|
v-model="mainForm.date"
|
|
type="datetime"
|
|
type="datetime"
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
>
|
|
>
|
|
@@ -455,7 +455,7 @@
|
|
placeholder="选择销售类型"
|
|
placeholder="选择销售类型"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
>
|
|
>
|
|
- <el-option label="全部" value=""></el-option>
|
|
|
|
|
|
+
|
|
<el-option
|
|
<el-option
|
|
v-for="item in ztypeList"
|
|
v-for="item in ztypeList"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -476,93 +476,172 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
- <el-row :gutter="20" style="margin: 10px 0">
|
|
|
|
- {{ cusIndex > 0 ? "选择配提机型" : "选择限定机型" }}
|
|
|
|
- {{ "(" + pop + ")" }}
|
|
|
|
- </el-row>
|
|
|
|
- <el-table
|
|
|
|
- v-loading="listLoading"
|
|
|
|
- :data="popDataArr[cusIndex]"
|
|
|
|
- element-loading-text="Loading"
|
|
|
|
- border
|
|
|
|
- fit
|
|
|
|
- highlight-current-row
|
|
|
|
- @select-all="handleSelectionChange"
|
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
- stripe
|
|
|
|
- >
|
|
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- type="selection"
|
|
|
|
- :selectable="selectable"
|
|
|
|
- width="55"
|
|
|
|
|
|
+ <template v-if="!dataList.length">
|
|
|
|
+ <el-row :gutter="20" style="margin: 10px 0">
|
|
|
|
+ {{ cusIndex > 0 ? "选择配提机型" : "选择限定机型" }}
|
|
|
|
+ {{ "(" + pop + ")" }}
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-table
|
|
|
|
+ v-loading="listLoading"
|
|
|
|
+ :data="popDataArr[cusIndex]"
|
|
|
|
+ element-loading-text="Loading"
|
|
|
|
+ border
|
|
|
|
+ fit
|
|
|
|
+ highlight-current-row
|
|
|
|
+ @select-all="handleSelectionChange"
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
|
+ stripe
|
|
>
|
|
>
|
|
- </el-table-column>
|
|
|
|
- <template v-for="col in columns">
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
- v-if="col.num"
|
|
|
|
align="center"
|
|
align="center"
|
|
- :label="col.lable"
|
|
|
|
- :prop="col.prop"
|
|
|
|
- :min-width="col.widht"
|
|
|
|
- show-overflow-tooltip
|
|
|
|
|
|
+ type="selection"
|
|
|
|
+ :selectable="selectable"
|
|
|
|
+ width="55"
|
|
>
|
|
>
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-input v-model="scope.row.qty" size="small"></el-input>
|
|
|
|
- </template>
|
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- v-else-if="col.jie"
|
|
|
|
- align="center"
|
|
|
|
- :label="col.lable"
|
|
|
|
- :prop="col.prop"
|
|
|
|
- :min-width="col.widht"
|
|
|
|
- show-overflow-tooltip
|
|
|
|
|
|
+ <template v-for="col in columns">
|
|
|
|
+ <el-table-column
|
|
|
|
+ v-if="col.num"
|
|
|
|
+ align="center"
|
|
|
|
+ :label="col.lable"
|
|
|
|
+ :prop="col.prop"
|
|
|
|
+ :min-width="col.widht"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input v-model="scope.row.qty" size="small"></el-input>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ v-else-if="col.jie"
|
|
|
|
+ align="center"
|
|
|
|
+ :label="col.lable"
|
|
|
|
+ :prop="col.prop"
|
|
|
|
+ :min-width="col.widht"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.qty * scope.row.price || 0 }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ v-else
|
|
|
|
+ align="center"
|
|
|
|
+ :label="col.lable"
|
|
|
|
+ :prop="col.prop"
|
|
|
|
+ :min-width="col.widht"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table>
|
|
|
|
+ <div style="margin: 10px 0">
|
|
|
|
+ <el-pagination
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ :current-page="currentPage"
|
|
|
|
+ :page-sizes="[10]"
|
|
|
|
+ :page-size="10"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
+ :total="total"
|
|
>
|
|
>
|
|
- <template slot-scope="scope">
|
|
|
|
- {{ scope.row.qty * scope.row.price || 0 }}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- v-else
|
|
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </div>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" v-if="cusIndex > 0" @click="handleShang"
|
|
|
|
+ >上一步</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="handleCondition"
|
|
|
|
+ v-if="popArr.length != cusIndex + 1"
|
|
|
|
+ >下一步</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="hanlePopData"
|
|
|
|
+ v-if="popArr.length == cusIndex + 1"
|
|
|
|
+ >完成</el-button
|
|
|
|
+ >
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <el-table
|
|
|
|
+ v-loading="listLoading"
|
|
|
|
+ :data="dataList"
|
|
|
|
+ element-loading-text="Loading"
|
|
|
|
+ border
|
|
|
|
+ fit
|
|
|
|
+ highlight-current-row
|
|
|
|
+ @select-all="handleSelectionChange"
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
|
+ stripe
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
align="center"
|
|
align="center"
|
|
- :label="col.lable"
|
|
|
|
- :prop="col.prop"
|
|
|
|
- :min-width="col.widht"
|
|
|
|
- show-overflow-tooltip
|
|
|
|
|
|
+ type="selection"
|
|
|
|
+ :selectable="selectable"
|
|
|
|
+ width="55"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- </template>
|
|
|
|
- </el-table>
|
|
|
|
- <div style="margin: 10px 0">
|
|
|
|
- <el-pagination
|
|
|
|
- @size-change="handleSizeChange"
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
- :current-page="currentPage"
|
|
|
|
- :page-sizes="[10]"
|
|
|
|
- :page-size="10"
|
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
- :total="total"
|
|
|
|
- >
|
|
|
|
- </el-pagination>
|
|
|
|
- </div>
|
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
|
- <el-button type="primary" v-if="cusIndex > 0" @click="handleShang"
|
|
|
|
- >上一步</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="handleCondition"
|
|
|
|
- v-if="popArr.length != cusIndex + 1"
|
|
|
|
- >下一步</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="hanlePopData"
|
|
|
|
- v-if="popArr.length == cusIndex + 1"
|
|
|
|
- >完成</el-button
|
|
|
|
- >
|
|
|
|
- </span>
|
|
|
|
|
|
+ <template v-for="col in columns">
|
|
|
|
+ <el-table-column
|
|
|
|
+ v-if="col.num"
|
|
|
|
+ align="center"
|
|
|
|
+ :label="col.lable"
|
|
|
|
+ :prop="col.prop"
|
|
|
|
+ :min-width="col.widht"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input v-model="scope.row.qty" size="small"></el-input>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ v-else-if="col.jie"
|
|
|
|
+ align="center"
|
|
|
|
+ :label="col.lable"
|
|
|
|
+ :prop="col.prop"
|
|
|
|
+ :min-width="col.widht"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.qty * scope.row.price || 0 }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ v-else
|
|
|
|
+ align="center"
|
|
|
|
+ :label="col.lable"
|
|
|
|
+ :prop="col.prop"
|
|
|
|
+ :min-width="col.widht"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table>
|
|
|
|
+ <div style="margin: 10px 0">
|
|
|
|
+ <el-pagination
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ :current-page="currentPage"
|
|
|
|
+ :page-sizes="[10]"
|
|
|
|
+ :page-size="10"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
+ :total="total"
|
|
|
|
+ >
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </div>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="hanlePopData"
|
|
|
|
+
|
|
|
|
+ >完成</el-button
|
|
|
|
+ >
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
</template>
|
|
</template>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -774,20 +853,21 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
hendleEdit(val, index) {
|
|
hendleEdit(val, index) {
|
|
- let params = {
|
|
|
|
- id: this.cid,
|
|
|
|
- theTime: this.mainForm.date,
|
|
|
|
- mainId: this.mainForm.type,
|
|
|
|
- mainName: this.mainForm.mainName,
|
|
|
|
- remark: this.mainForm.remark,
|
|
|
|
- type: 2,
|
|
|
|
- retailOrderItemList: this.goodsList,
|
|
|
|
- policyId: this.policyId,
|
|
|
|
- };
|
|
|
|
- editData(params).then((res) => {
|
|
|
|
- this.$successMsg("编辑成功");
|
|
|
|
- this.getDetail();
|
|
|
|
- });
|
|
|
|
|
|
+ this.dialogVisible = false
|
|
|
|
+ // let params = {
|
|
|
|
+ // id: this.cid,
|
|
|
|
+ // theTime: this.mainForm.date,
|
|
|
|
+ // mainId: this.mainForm.type,
|
|
|
|
+ // mainName: this.mainForm.mainName,
|
|
|
|
+ // remark: this.mainForm.remark,
|
|
|
|
+ // type: 2,
|
|
|
|
+ // retailOrderItemList: this.goodsList,
|
|
|
|
+ // policyId: this.policyId,
|
|
|
|
+ // };
|
|
|
|
+ // editData(params).then((res) => {
|
|
|
|
+ // this.$successMsg("编辑成功");
|
|
|
|
+ // this.getDetail();
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
//获取条件相对应的比列
|
|
//获取条件相对应的比列
|
|
handleFactor(e) {
|
|
handleFactor(e) {
|
|
@@ -806,7 +886,7 @@ export default {
|
|
if (this.screenForm.factorId) {
|
|
if (this.screenForm.factorId) {
|
|
this.getConditionList(this.policyConditionId, this.cusIndex + 1);
|
|
this.getConditionList(this.policyConditionId, this.cusIndex + 1);
|
|
} else {
|
|
} else {
|
|
- this.$errorMsg("必须要条件");
|
|
|
|
|
|
+ this.getpolicyTypeList();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 获取某一个比例下的数据 ,查询popType 当前 this.cusIndex+1
|
|
// 获取某一个比例下的数据 ,查询popType 当前 this.cusIndex+1
|
|
@@ -996,7 +1076,6 @@ export default {
|
|
type: "COMMONLY",
|
|
type: "COMMONLY",
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
this.xjWalletList = res.data;
|
|
this.xjWalletList = res.data;
|
|
- console.log(res.data, "xxxxx");
|
|
|
|
});
|
|
});
|
|
|
|
|
|
getWalletList({
|
|
getWalletList({
|
|
@@ -1004,7 +1083,6 @@ export default {
|
|
type: "REBATE",
|
|
type: "REBATE",
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
this.flWalletList = res.data;
|
|
this.flWalletList = res.data;
|
|
- console.log(this.flWalletList, "xxccc");
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
|