|
@@ -65,7 +65,7 @@
|
|
|
clearable
|
|
|
placeholder="关键字"
|
|
|
v-model="s_input"
|
|
|
- maxlength="40"
|
|
|
+ maxlength="40"
|
|
|
:size="searchSize"
|
|
|
class="input-with-select"
|
|
|
>
|
|
@@ -77,6 +77,8 @@
|
|
|
>
|
|
|
<el-option label="销售退货单编号" value="returnCode" />
|
|
|
<el-option label="销售订单编号" value="orderCode" />
|
|
|
+ <el-option label="申请人部门" value="company_name" />
|
|
|
+
|
|
|
<el-option label="申请人" value="apply_name" />
|
|
|
</el-select>
|
|
|
<el-button
|
|
@@ -139,8 +141,7 @@
|
|
|
>
|
|
|
<i
|
|
|
class="el-icon-view tb-icon"
|
|
|
-
|
|
|
- @click="getRouter('sellReturnDetail', scope.row.returnCode )"
|
|
|
+ @click="getRouter('sellReturnDetail', scope.row.returnCode)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
@@ -197,6 +198,7 @@ export default {
|
|
|
parmValue: {
|
|
|
returnCode: "", //销售退货code
|
|
|
orderCode: "", //销售订单code
|
|
|
+ company_name: "",
|
|
|
apply_name: "", //申请人
|
|
|
start: "",
|
|
|
end: "",
|
|
@@ -231,33 +233,32 @@ export default {
|
|
|
const { back } = this.$route.query;
|
|
|
if (back) {
|
|
|
this.parmValue = JSON.parse(back);
|
|
|
- console.log(this.parmValue)
|
|
|
- const {page,size}=this.parmValue;
|
|
|
+ console.log(this.parmValue);
|
|
|
+ const { page, size } = this.parmValue;
|
|
|
// this.parmValue.start = start || last_start;
|
|
|
// this.parmValue.end = end || last_end;
|
|
|
// if(this.parmValue.companyNo.length>0){
|
|
|
// this.customerCode = [this.parmValue.companyNo] ;
|
|
|
// }
|
|
|
-
|
|
|
- this.pageInfo= {
|
|
|
+
|
|
|
+ this.pageInfo = {
|
|
|
size: size,
|
|
|
curr: page,
|
|
|
total: 0,
|
|
|
- }
|
|
|
+ };
|
|
|
//多选条件
|
|
|
- this.select = this.parmValue.select;
|
|
|
- // this.sselect = this.parmValue.sselect;
|
|
|
- this.s_input = this.parmValue.s_input
|
|
|
-
|
|
|
- }else{
|
|
|
- this.select = "returnCode";
|
|
|
+ this.select = this.parmValue.select;
|
|
|
+ // this.sselect = this.parmValue.sselect;
|
|
|
+ this.s_input = this.parmValue.s_input;
|
|
|
+ } else {
|
|
|
+ this.select = "returnCode";
|
|
|
// this.sselect = "创建时间"
|
|
|
}
|
|
|
this.searchList();
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- getRouter(toRouter, queryId){
|
|
|
+ getRouter(toRouter, queryId) {
|
|
|
if (toRouter && queryId) {
|
|
|
let model = {
|
|
|
id: queryId,
|
|
@@ -265,16 +266,16 @@ export default {
|
|
|
};
|
|
|
|
|
|
//有多选框的条件
|
|
|
- this.parmValue.select = this.select ;
|
|
|
+ this.parmValue.select = this.select;
|
|
|
// this.parmValue.sselect = this.sselect ;
|
|
|
- this.parmValue.s_input= this.s_input;
|
|
|
+ this.parmValue.s_input = this.s_input;
|
|
|
//
|
|
|
- let routerModel = {
|
|
|
+ let routerModel = {
|
|
|
options: JSON.parse(JSON.stringify(this.parmValue)),
|
|
|
router: this.$route.path,
|
|
|
};
|
|
|
model.preModel = JSON.stringify(routerModel);
|
|
|
-
|
|
|
+
|
|
|
this.routeGoto(toRouter, model);
|
|
|
} else {
|
|
|
this.$message.warning("暂未找到相关流程!");
|
|
@@ -285,6 +286,7 @@ export default {
|
|
|
this.select = ""; //清除下拉框选中项
|
|
|
this.parmValue = {
|
|
|
order_type: "1", //订单类型1为销售 2为咨询
|
|
|
+ company_name: "", //申请人部门
|
|
|
|
|
|
returnCode: "", //销售退货code
|
|
|
orderCode: "", //销售订单code
|
|
@@ -339,7 +341,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
async searchList() {
|
|
|
- if (
|
|
|
+ if (
|
|
|
(this.parmValue.start !== "" && this.parmValue.end === "") ||
|
|
|
(this.parmValue.start === "" && this.parmValue.end !== "")
|
|
|
) {
|
|
@@ -353,6 +355,8 @@ export default {
|
|
|
this.select === "orderCode" ? this.s_input : "";
|
|
|
this.parmValue.apply_name =
|
|
|
this.select === "apply_name" ? this.s_input : "";
|
|
|
+ this.parmValue.company_name =
|
|
|
+ this.select === "company_name" ? this.s_input : "";
|
|
|
let model = JSON.parse(JSON.stringify(this.parmValue));
|
|
|
|
|
|
const res = await asyncRequest.list(model);
|