|
@@ -18,7 +18,7 @@
|
|
|
label-position="right"
|
|
|
>
|
|
|
<el-row :gutter="20">
|
|
|
- <el-col :xs="24" :sm="12" :lg="8">
|
|
|
+ <!-- <el-col :xs="24" :sm="12" :lg="8">
|
|
|
<el-form-item label="订单号" prop="id">
|
|
|
<el-input
|
|
|
v-model="mainForm.id"
|
|
@@ -26,7 +26,7 @@
|
|
|
readonly
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col
|
|
|
:xs="24"
|
|
|
:sm="12"
|
|
@@ -304,7 +304,7 @@
|
|
|
>
|
|
|
<el-option label="不使用" value=""></el-option>
|
|
|
<el-option
|
|
|
- v-for="item in xjWalletList"
|
|
|
+ v-for="item in comxjWalletList(scope.row.walletRelaList)"
|
|
|
:key="item.customerWalletId"
|
|
|
:label="item.name"
|
|
|
:value="item.customerWalletId"
|
|
@@ -455,6 +455,7 @@
|
|
|
placeholder="选择销售类型"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
+ <el-option label="不使用" value=""></el-option>
|
|
|
<el-option
|
|
|
v-for="item in ztypeList"
|
|
|
:key="item.id"
|
|
@@ -566,24 +567,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="8" :lg="8">
|
|
|
- <el-form-item>
|
|
|
- <el-input
|
|
|
- v-model="screenForm.type"
|
|
|
- placeholder="产品编码"
|
|
|
- size="small"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="8" :lg="8">
|
|
|
- <el-form-item>
|
|
|
- <el-input
|
|
|
- v-model="screenForm.type"
|
|
|
- placeholder="产品名称"
|
|
|
- size="small"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+
|
|
|
<el-col :xs="24" :sm="8" :lg="8">
|
|
|
<el-form-item label="销售类型">
|
|
|
<el-select
|
|
@@ -591,6 +575,7 @@
|
|
|
placeholder="选择销售类型"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
+ <el-option label="不使用" value=""></el-option>
|
|
|
<el-option
|
|
|
v-for="item in ztypeList"
|
|
|
:key="item.id"
|
|
@@ -831,6 +816,22 @@ export default {
|
|
|
openSidebar: this.sidebar.opened,
|
|
|
};
|
|
|
},
|
|
|
+ comxjWalletList(){
|
|
|
+ return (c)=>{
|
|
|
+ const walle =[]
|
|
|
+ const ovalVall = c == undefined || !c.length ? []: c
|
|
|
+ for (let i = 0; i < this.xjWalletList.length; i++) {
|
|
|
+ for (let j = 0; j < ovalVall.length; j++) {
|
|
|
+ if (this.xjWalletList[i].walletRebateId ==ovalVall[j].walletId) {
|
|
|
+ walle.push(this.xjWalletList[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return walle
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
created() {
|
|
@@ -936,7 +937,9 @@ export default {
|
|
|
type: "COMMONLY",
|
|
|
}).then((res) => {
|
|
|
this.xjWalletList = res.data;
|
|
|
+
|
|
|
});
|
|
|
+
|
|
|
getWalletList({
|
|
|
customerId: JSON.parse(localStorage.getItem("supply_user")).customerId,
|
|
|
type: "REBATE",
|
|
@@ -1124,8 +1127,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.cusIndex = 0
|
|
|
+ this.cusIndex = 0;
|
|
|
this.isShowDialog = false;
|
|
|
+ console.log(this.goodsList,'goodsList');
|
|
|
} else {
|
|
|
this.$errorMsg("请选择");
|
|
|
}
|
|
@@ -1134,7 +1138,6 @@ export default {
|
|
|
deleteItem(index) {
|
|
|
this.goodsList.splice(index, 1);
|
|
|
},
|
|
|
-
|
|
|
// 修改返利钱包
|
|
|
changeWallet(index) {
|
|
|
if (this.goodsList[index].customerWalletId2) {
|
|
@@ -1176,7 +1179,9 @@ export default {
|
|
|
clickSubmitForm() {
|
|
|
this.$refs.mainForm.validate((valid) => {
|
|
|
if (valid) {
|
|
|
+
|
|
|
for (let i = 0; i < this.goodsList.length; i++) {
|
|
|
+ console.log(this.goodsList[i].customerWalletId,45454554);
|
|
|
if (!this.goodsList[i].customerWalletId) {
|
|
|
this.$errorMsg("请选择现金钱包");
|
|
|
return;
|
|
@@ -1195,6 +1200,7 @@ export default {
|
|
|
type: 2, // 1:普通零售单,2:政策零售单
|
|
|
retailOrderItemList: this.goodsList,
|
|
|
policyId: this.screenForm.policyId,
|
|
|
+
|
|
|
};
|
|
|
if (this.listItem) {
|
|
|
params.id = this.listItem.id;
|