md
This commit is contained in:
parent
90beb8d5ef
commit
805b2c46de
@ -42,13 +42,13 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否特殊报价" prop="params.blSpecialQuote">
|
<el-form-item label="是否特殊报价" prop="params.blSpecialQuote">
|
||||||
<el-select clearable v-model="queryParams.params.blSpecialQuote" placeholder="">
|
<el-select clearable v-model="queryParams.params.blSpecialQuote" placeholder="是否特殊报价">
|
||||||
<el-option key="1" label="是" value="1"></el-option>
|
<el-option key="1" label="是" value="1"></el-option>
|
||||||
<el-option key="0" label="否" value="0"></el-option>
|
<el-option key="0" label="否" value="0"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="业务确认状态" prop="blConfirmSite">
|
<el-form-item label="业务确认状态" prop="blConfirmSite">
|
||||||
<el-select clearable v-model="queryParams.blConfirmSite" placeholder="">
|
<el-select clearable v-model="queryParams.blConfirmSite" placeholder="业务确认状态">
|
||||||
<el-option key="0" label="业务未确认" value="0"></el-option>
|
<el-option key="0" label="业务未确认" value="0"></el-option>
|
||||||
<el-option key="1" label="业务已确认" value="1"></el-option>
|
<el-option key="1" label="业务已确认" value="1"></el-option>
|
||||||
<el-option key="2" label="确认不出账" value="2"></el-option>
|
<el-option key="2" label="确认不出账" value="2"></el-option>
|
||||||
@ -57,7 +57,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="财务确认状态" prop="blConfirmCenter">
|
<el-form-item label="财务确认状态" prop="blConfirmCenter">
|
||||||
<el-select clearable v-model="queryParams.blConfirmCenter" placeholder="">
|
<el-select clearable v-model="queryParams.blConfirmCenter" placeholder="财务确认状态">
|
||||||
<el-option key="0" label="财务未确认" value="0"></el-option>
|
<el-option key="0" label="财务未确认" value="0"></el-option>
|
||||||
<el-option key="1" label="财务已确认" value="1"></el-option>
|
<el-option key="1" label="财务已确认" value="1"></el-option>
|
||||||
<el-option key="2" label="确认不出账" value="2"></el-option>
|
<el-option key="2" label="确认不出账" value="2"></el-option>
|
||||||
@ -508,9 +508,6 @@ export default {
|
|||||||
currentSettleBillNo:null,
|
currentSettleBillNo:null,
|
||||||
selectBillList:[],
|
selectBillList:[],
|
||||||
|
|
||||||
|
|
||||||
storageName:null,
|
|
||||||
|
|
||||||
queryStatInfoMap:null,
|
queryStatInfoMap:null,
|
||||||
|
|
||||||
currentId:null,
|
currentId:null,
|
||||||
@ -716,31 +713,69 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
$route () {
|
$route () {
|
||||||
if(this.$route.query.custNo!=null){
|
if(this.$route.query.custNo!=null){
|
||||||
this.queryParams.blConfirmCenter='0';
|
|
||||||
this.queryParams.blConfirmSite=this.$route.query.blConfirmSite;
|
|
||||||
this.actionType=this.$route.query.actionType;
|
this.actionType=this.$route.query.actionType;
|
||||||
|
|
||||||
|
this.queryParams.blConfirmCenter=this.$route.query.blConfirmCenter;
|
||||||
|
this.queryParams.blConfirmSite=this.$route.query.blConfirmSite;
|
||||||
this.queryParams.custNo=this.$route.query.custNo;
|
this.queryParams.custNo=this.$route.query.custNo;
|
||||||
let startTime=this.$route.query.startTime;
|
let startTime=this.$route.query.startTime;
|
||||||
let endTime=this.$route.query.endTime;
|
let endTime=this.$route.query.endTime;
|
||||||
this.dateTimeRange=[startTime, endTime]
|
this.dateTimeRange=[startTime, endTime]
|
||||||
|
|
||||||
|
if(this.queryParams.blConfirmCenter=="0"){
|
||||||
|
this.activeTab="waitConfirm";
|
||||||
|
}
|
||||||
|
else if(this.queryParams.blConfirmCenter=="1"){
|
||||||
|
this.activeTab="hasConfirm";
|
||||||
|
}
|
||||||
|
else if(this.queryParams.blConfirmCenter=="2"){
|
||||||
|
this.activeTab="confirmNotBill";
|
||||||
|
}
|
||||||
|
else if(this.queryParams.blConfirmCenter=="3"){
|
||||||
|
this.activeTab="billError";
|
||||||
|
}else{
|
||||||
|
this.activeTab="all";
|
||||||
|
}
|
||||||
|
|
||||||
this.initData();
|
this.initData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
this.queryParams.blConfirmCenter='0';
|
if(this.$route.query.custNo!=null){
|
||||||
const end = new Date()
|
this.actionType=this.$route.query.actionType;
|
||||||
const start = new Date()
|
this.queryParams.blConfirmCenter=this.$route.query.blConfirmCenter;
|
||||||
start.setDate(1)
|
this.queryParams.blConfirmSite=this.$route.query.blConfirmSite;
|
||||||
start.setHours(0,0,0,0)
|
this.queryParams.custNo=this.$route.query.custNo;
|
||||||
end.setHours(23,59,59,0)
|
let startTime=this.$route.query.startTime;
|
||||||
this.dateTimeRange=[timeFormat(start), timeFormat(end)]
|
let endTime=this.$route.query.endTime;
|
||||||
|
this.dateTimeRange=[startTime, endTime]
|
||||||
|
|
||||||
// this.queryParams.blConfirmSite='1';
|
if(this.queryParams.blConfirmCenter=="0"){
|
||||||
this.actionType=this.$route.query.actionType;
|
this.activeTab="waitConfirm";
|
||||||
this.queryParams.custNo=this.$route.query.custNo;
|
}
|
||||||
this.queryParams.blConfirmSite=this.$route.query.blConfirmSite;
|
else if(this.queryParams.blConfirmCenter=="1"){
|
||||||
|
this.activeTab="hasConfirm";
|
||||||
|
}
|
||||||
|
else if(this.queryParams.blConfirmCenter=="2"){
|
||||||
|
this.activeTab="confirmNotBill";
|
||||||
|
}
|
||||||
|
else if(this.queryParams.blConfirmCenter=="3"){
|
||||||
|
this.activeTab="billError";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.activeTab="all";
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
this.queryParams.blConfirmCenter='0';
|
||||||
|
const end = new Date()
|
||||||
|
const start = new Date()
|
||||||
|
start.setDate(1)
|
||||||
|
start.setHours(0,0,0,0)
|
||||||
|
end.setHours(23,59,59,0)
|
||||||
|
this.dateTimeRange=[timeFormat(start), timeFormat(end)]
|
||||||
|
}
|
||||||
|
|
||||||
this.initData();
|
this.initData();
|
||||||
|
|
||||||
@ -748,8 +783,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
initData(){
|
initData(){
|
||||||
this.storageName="SubBillConfirmByMonthList_main";
|
|
||||||
this.queryParams.blConfirmCenter=0;
|
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
handleClick(tab, event) {
|
handleClick(tab, event) {
|
||||||
|
|||||||
@ -22,6 +22,16 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="财务确认状态" prop="blConfirmCenter">
|
||||||
|
<el-select clearable v-model="queryParams.blConfirmCenter" placeholder="">
|
||||||
|
<el-option key="0" label="财务未确认" value="0"></el-option>
|
||||||
|
<el-option key="1" label="财务已确认" value="1"></el-option>
|
||||||
|
<el-option key="2" label="确认不出账" value="2"></el-option>
|
||||||
|
<el-option key="3" label="账单异常" value="3"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
<el-form-item label="寄件日期" prop="sendDate">
|
<el-form-item label="寄件日期" prop="sendDate">
|
||||||
<elDateAdvPicker v-model="dateTimeRange" ></elDateAdvPicker>
|
<elDateAdvPicker v-model="dateTimeRange" ></elDateAdvPicker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -382,10 +392,9 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.queryParams.blConfirmCenter='0';
|
|
||||||
this.queryParams.blConfirmSite='1';
|
this.queryParams.blConfirmSite='1';
|
||||||
|
this.queryParams.blConfirmCenter='0';
|
||||||
this.actionType=this.$route.query.actionType;
|
this.actionType=this.$route.query.actionType;
|
||||||
|
|
||||||
const end = new Date()
|
const end = new Date()
|
||||||
const start = new Date()
|
const start = new Date()
|
||||||
start.setDate(1)
|
start.setDate(1)
|
||||||
@ -399,8 +408,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
initData(){
|
initData(){
|
||||||
|
|
||||||
this.queryParams.blConfirmCenter=0;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
tableRowClassName({row, rowIndex}) {
|
tableRowClassName({row, rowIndex}) {
|
||||||
@ -433,6 +440,7 @@ export default {
|
|||||||
actionType: "2",
|
actionType: "2",
|
||||||
custNo: row.custNo,
|
custNo: row.custNo,
|
||||||
blConfirmSite:this.queryParams.blConfirmSite,
|
blConfirmSite:this.queryParams.blConfirmSite,
|
||||||
|
blConfirmCenter:this.queryParams.blConfirmCenter,
|
||||||
startTime:this.dateTimeRange[0],
|
startTime:this.dateTimeRange[0],
|
||||||
endTime:this.dateTimeRange[1],
|
endTime:this.dateTimeRange[1],
|
||||||
}
|
}
|
||||||
@ -484,110 +492,6 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 修改按钮操作 */
|
|
||||||
handleUpdate(row) {
|
|
||||||
this.currentId= row.id;
|
|
||||||
this.openForm = true;
|
|
||||||
this.titleForm = "修改";
|
|
||||||
},
|
|
||||||
handleConfirmByCenter(row) {
|
|
||||||
const ids = row.id || this.ids;
|
|
||||||
this.$modal.confirm('是否确认').then(function() {
|
|
||||||
return confirmBillByCenter(ids);
|
|
||||||
}).then(() => {
|
|
||||||
this.getList();
|
|
||||||
this.$modal.msgSuccess("操作成功");
|
|
||||||
}).catch(() => {});
|
|
||||||
},
|
|
||||||
handleCancelConfirmByCenter(row) {
|
|
||||||
const ids = row.id || this.ids;
|
|
||||||
this.$modal.confirm('是否取消确认').then(function() {
|
|
||||||
return cancelConfirmBillByCenter(ids);
|
|
||||||
}).then(() => {
|
|
||||||
this.getList();
|
|
||||||
this.$modal.msgSuccess("操作成功");
|
|
||||||
}).catch(() => {});
|
|
||||||
},
|
|
||||||
handleConfirmNoBillByCenter(row) {
|
|
||||||
const ids = row.id || this.ids;
|
|
||||||
this.$prompt('请输入不出账原因', "操作确认", {
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
cancelButtonText: "取消",
|
|
||||||
closeOnClickModal: false,
|
|
||||||
inputPattern: /^.{1,30}$/,
|
|
||||||
inputErrorMessage: "原因长度必须介于 1 和 30 之间"
|
|
||||||
}).then(({ value }) => {
|
|
||||||
confirmNoBillByCenter(ids,value).then(response => {
|
|
||||||
this.$modal.msgSuccess("操作成功" );
|
|
||||||
this.getList();
|
|
||||||
});
|
|
||||||
}).catch(() => {});
|
|
||||||
},
|
|
||||||
handleSetBillErrorByCenter(row) {
|
|
||||||
const ids = row.id || this.ids;
|
|
||||||
this.$prompt('请输入账单异常原因', "操作确认", {
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
cancelButtonText: "取消",
|
|
||||||
closeOnClickModal: false,
|
|
||||||
inputPattern: /^.{1,30}$/,
|
|
||||||
inputErrorMessage: "原因长度必须介于 1 和 30 之间"
|
|
||||||
}).then(({ value }) => {
|
|
||||||
setBillErrorByCenter(ids,value).then(response => {
|
|
||||||
this.$modal.msgSuccess("操作成功" );
|
|
||||||
this.getList();
|
|
||||||
});
|
|
||||||
}).catch(() => {});
|
|
||||||
},
|
|
||||||
|
|
||||||
handleConfirmBySite(row) {
|
|
||||||
const ids = row.id || this.ids;
|
|
||||||
this.$modal.confirm('是否确认').then(function() {
|
|
||||||
return confirmBillBySite(ids);
|
|
||||||
}).then(() => {
|
|
||||||
this.getList();
|
|
||||||
this.$modal.msgSuccess("操作成功");
|
|
||||||
}).catch(() => {});
|
|
||||||
},
|
|
||||||
handleCancelConfirmBySite(row) {
|
|
||||||
const ids = row.id || this.ids;
|
|
||||||
this.$modal.confirm('是否取消确认').then(function() {
|
|
||||||
return cancelConfirmBillBySite(ids);
|
|
||||||
}).then(() => {
|
|
||||||
this.getList();
|
|
||||||
this.$modal.msgSuccess("操作成功");
|
|
||||||
}).catch(() => {});
|
|
||||||
},
|
|
||||||
handleConfirmNoBillBySite(row) {
|
|
||||||
const ids = row.id || this.ids;
|
|
||||||
this.$prompt('请输入不出账原因', "操作确认", {
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
cancelButtonText: "取消",
|
|
||||||
closeOnClickModal: false,
|
|
||||||
inputPattern: /^.{1,30}$/,
|
|
||||||
inputErrorMessage: "原因长度必须介于 1 和 30 之间"
|
|
||||||
}).then(({ value }) => {
|
|
||||||
confirmNoBillBySite(ids,value).then(response => {
|
|
||||||
this.$modal.msgSuccess("操作成功" );
|
|
||||||
this.getList();
|
|
||||||
});
|
|
||||||
}).catch(() => {});
|
|
||||||
},
|
|
||||||
handleSetBillErrorBySite(row) {
|
|
||||||
const ids = row.id || this.ids;
|
|
||||||
this.$prompt('请输入账单异常原因', "操作确认", {
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
cancelButtonText: "取消",
|
|
||||||
closeOnClickModal: false,
|
|
||||||
inputPattern: /^.{1,30}$/,
|
|
||||||
inputErrorMessage: "原因长度必须介于 1 和 30 之间"
|
|
||||||
}).then(({ value }) => {
|
|
||||||
setBillErrorBySite(ids,value).then(response => {
|
|
||||||
this.$modal.msgSuccess("操作成功" );
|
|
||||||
this.getList();
|
|
||||||
});
|
|
||||||
}).catch(() => {});
|
|
||||||
},
|
|
||||||
|
|
||||||
handleFormChanged(){
|
handleFormChanged(){
|
||||||
this.openForm = false;
|
this.openForm = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user