Commit 32df29bd authored by zs嵩's avatar zs嵩

清除合并冲突

parents 1ad37a34 12b91308
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
center center
:title="$t('修改跟进状态')" :title="$t('修改跟进状态')"
:visible="show" :visible="show"
@close="close" @close="customerFollowUpdateStatusClose"
width="30%"> width="30%">
<div style="width: 100%;min-height: 60px;text-align: center"> <div style="width: 100%;min-height: 60px;text-align: center">
<el-form label-width="120px"> <el-form label-width="120px">
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<script> <script>
import {DICT_TYPE, getDictDatas, getDictDatas2} from "@/utils/dict"; import {DICT_TYPE, getDictDatas, getDictDatas2} from "@/utils/dict";
import {updateCustomerFollowupStatus} from "@/api/ecw/customerFollow"; import {getCustomerFollowList, updateCustomerFollowupStatus} from "@/api/ecw/customerFollow";
export default { export default {
name: "customerFollowUpdateStatus", name: "customerFollowUpdateStatus",
...@@ -70,21 +70,25 @@ export default { ...@@ -70,21 +70,25 @@ export default {
status: this.status status: this.status
}).then(r => { }).then(r => {
if (r.code === 0) { if (r.code === 0) {
if (r.data) {
this.$message.success(r.data)
this.$emit('update:show', false)
this.$emit('update:followupIds', [])
this.status = '';
} else {
this.$emit('update:show', false)
this.$emit('update:followupIds', [])
this.status = null;
this.$message.success(this.$t('修改成功!')) this.$message.success(this.$t('修改成功!'))
this.$emit("refresh")
this.customerFollowUpdateStatusClose()
} }
}
})
},
getCustomerFollowList() {
this.loading = true
getCustomerFollowList({
...this.followForm,
...this.formatQuery()
}).then((r) => {
this.customerFollowList = r.data.list
this.customerFollowTotal = r.data.total
this.loading = false
}) })
}, },
close() { customerFollowUpdateStatusClose() {
this.status = null; this.status = null;
this.$emit('update:show', false) this.$emit('update:show', false)
......
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
<pagination :total="customerFollowTotal" :page.sync="followForm.pageNo" :limit.sync="followForm.pageSize" @pagination="getCustomerFollowList" /> <pagination :total="customerFollowTotal" :page.sync="followForm.pageNo" :limit.sync="followForm.pageSize" @pagination="getCustomerFollowList" />
</el-card> </el-card>
<customer-follow ref="customerFollow" @close="customerFollowVisible = false" @handleCustomerFollowAdd="handleCustomerFollowAdd" @refresh="handleQuery" v-if="customerFollowVisible" :customer-id="customerId" :customerService="customerService" :customerNumber="customerNumber" /> <customer-follow ref="customerFollow" @close="customerFollowVisible = false" @handleCustomerFollowAdd="handleCustomerFollowAdd" @refresh="handleQuery" v-if="customerFollowVisible" :customer-id="customerId" :customerService="customerService" :customerNumber="customerNumber" />
<customer-follow-update-status :show.sync="updateStatus" :followup-ids.sync="selectCustomerFollowList"></customer-follow-update-status> <customer-follow-update-status :show.sync="updateStatus" :followup-ids.sync="selectCustomerFollowList" @refresh="handleQuery"></customer-follow-update-status>
</div> </div>
</template> </template>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
> >
<el-form-item> <el-form-item>
<el-button <el-button
:disabled="!!processInstanceId || editMode" :disabled="!!processInstanceId "
@click="addCost" @click="addCost"
>{{ $t("添加申请") }} >{{ $t("添加申请") }}
</el-button </el-button
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<!--el-button type="text" v-if="scope.row.status == 1" @click="examineFn">{{$t('审核中')}}</el-button--> <!--el-button type="text" v-if="scope.row.status == 1" @click="examineFn">{{$t('审核中')}}</el-button-->
<el-button <el-button
type="text" type="text"
v-if="modifable(scope.$index)" v-if="scope.row.id && modifable(scope.row)"
@click="modify(scope.row)" @click="modify(scope.row)"
>{{ $t("修改") }} >{{ $t("修改") }}
</el-button </el-button
...@@ -225,7 +225,8 @@ export default { ...@@ -225,7 +225,8 @@ export default {
return this.$i18n.locale === "zh_CN"; return this.$i18n.locale === "zh_CN";
}, },
feeList() { feeList() {
return this.list.filter((item) => item.status === 0); // return this.list.filter((item) => item.status === 0);
return this.list;
}, },
// 正在编辑的费用申请 // 正在编辑的费用申请
currentItem() { currentItem() {
...@@ -236,13 +237,13 @@ export default { ...@@ -236,13 +237,13 @@ export default {
return !!this.currentItem; return !!this.currentItem;
}, },
modifable() { modifable() {
return (index) => { return (item) => {
// 审核中不允许修改 // 审核中不允许修改
if (this.processInstanceId) return false; if (this.processInstanceId) return false;
// 有未提交的不允许修改 // 有未提交的不允许修改
if (this.feeList.length) return false; // if (this.feeList.length) return false;
// 修改中的不允许修改 // 修改中的不允许修改
if (this.list.findIndex((item) => item.editMode) > -1) return false; if (item.editMode) return false;
return true; return true;
} }
} }
...@@ -317,18 +318,18 @@ export default { ...@@ -317,18 +318,18 @@ export default {
if (errList.length) { if (errList.length) {
return this.$message.error("请填写完整费用申请信息"); return this.$message.error("请填写完整费用申请信息");
} }
if (this.editMode) { // if (this.editMode) {
// 要提交status=1,否则保持原状态 // // 要提交status=1,否则保持原状态
const data = { // const data = {
...this.currentItem, // ...this.currentItem,
status: 1, // status: 1,
copyUserId: this.selectedUsers, // copyUserId: this.selectedUsers,
}; // };
return applicationUpdate(data).then((r) => { // return applicationUpdate(data).then((r) => {
this.$message.success(this.$t("修改成功")); // this.$message.success(this.$t("修改成功"));
this.$emit("update:dialogVisible", false); // this.$emit("update:dialogVisible", false);
}); // });
} // }
feeApplicationCreateBatch({ feeApplicationCreateBatch({
orderFeeApplicationCreateReqVOList: this.feeList, orderFeeApplicationCreateReqVOList: this.feeList,
...@@ -339,6 +340,7 @@ export default { ...@@ -339,6 +340,7 @@ export default {
this.$emit("update:dialogVisible", false); this.$emit("update:dialogVisible", false);
this.$message.success(this.$t("添加成功")); this.$message.success(this.$t("添加成功"));
this.selectedUsers = []; this.selectedUsers = [];
this.$emit("refresh")
} }
}); });
}, },
......
...@@ -589,7 +589,7 @@ ...@@ -589,7 +589,7 @@
<batch-pickup v-if="showBatchPickup" @close="onBatchClose" @success="onBatchClose" /> <batch-pickup v-if="showBatchPickup" @close="onBatchClose" @success="onBatchClose" />
<withdrawal v-if="show" :dialog-visible="show" :orderId="orderId"></withdrawal> <withdrawal v-if="show" :dialog-visible="show" :orderId="orderId"></withdrawal>
<batch-single-application @getList="getList" :order-list="orderId" :dialog-visible.sync="warehouseBol"></batch-single-application> <batch-single-application @getList="getList" :order-list="orderId" :dialog-visible.sync="warehouseBol"></batch-single-application>
<fee-application v-if="feeApplicationBol" :order-id="orderId" :currencys="JSON.stringify(currencyList)" :dialog-visible.sync="feeApplicationBol"></fee-application> <fee-application v-if="feeApplicationBol" :order-id="orderId" :currencys="JSON.stringify(currencyList)" :dialog-visible.sync="feeApplicationBol "@refresh="getList"></fee-application>
<merge-log :order-no="showMergedLogOrderNo" v-if="showMergedLogOrderNo !== null" @close="showMergedLogOrderNo = null" /> <merge-log :order-no="showMergedLogOrderNo" v-if="showMergedLogOrderNo !== null" @close="showMergedLogOrderNo = null" />
<pickup-log v-if="showPickupLogOrderNo" :order-no="showPickupLogOrderNo" @close="showPickupLogOrderNo = null" @delete="getList" /> <pickup-log v-if="showPickupLogOrderNo" :order-no="showPickupLogOrderNo" @close="showPickupLogOrderNo = null" @delete="getList" />
<SplitRevoke <SplitRevoke
......
...@@ -986,6 +986,11 @@ export default { ...@@ -986,6 +986,11 @@ export default {
resetQuery() { resetQuery() {
this.dateRangeCreateTime = []; this.dateRangeCreateTime = [];
this.resetForm("queryForm"); this.resetForm("queryForm");
this.destCountryId = null
this.destWarehouseId = null
this.objectiveId = null
this.handleQuery(); this.handleQuery();
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment