|
@@ -97,7 +97,13 @@
|
|
|
<el-input v-model="screenForm.mainOrderId" placeholder="请输入订单号"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="产品类别" >
|
|
|
+ <el-select v-model="screenForm.categoryId" style="width: 100%" placeholder="选择产品类别" filterable clearable>
|
|
|
+ <el-option v-for="item in categoryList" :key="item.name" :label="item.name" :value="item.id" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :xs="24" :sm="24" :lg="6" class="tr">
|
|
|
<el-form-item label="">
|
|
|
<el-button @click="resetScreenForm">清空</el-button>
|
|
@@ -191,6 +197,11 @@
|
|
|
<span>{{scope.row.specification}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column align="left" label="产品类别" prop="categoryName" min-width="350" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.categoryName}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="left" label="销售政策名称" prop="policyTitle" min-width="350" show-overflow-tooltip>
|
|
|
|
|
|
</el-table-column>
|
|
@@ -320,7 +331,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { getApplyList, submitApply, deleteApply, abandonApply, examineBatchApply } from "@/api/supply/apply";
|
|
|
-import { getSalesmanList } from '@/api/common'
|
|
|
+import {getCategoryList, getSalesmanList} from '@/api/common'
|
|
|
import ApplyDetail from "@/views/supply/apply/components/apply_detail";
|
|
|
import ApplyExamine from "@/views/supply/apply/components/apply_examine";
|
|
|
import ApplyForm from "@/views/supply/apply/components/apply_form";
|
|
@@ -366,7 +377,8 @@ export default {
|
|
|
orderType: '',
|
|
|
mainOrderId: '',
|
|
|
k3ServiceId:'',
|
|
|
- serviceId:''
|
|
|
+ serviceId:'',
|
|
|
+ categoryId: ''
|
|
|
},
|
|
|
statusList: [
|
|
|
{ label: '已保存', value: 'SAVE' },
|
|
@@ -394,6 +406,7 @@ export default {
|
|
|
status: '',
|
|
|
remark: '',
|
|
|
},
|
|
|
+ categoryList: []
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -409,10 +422,11 @@ export default {
|
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
examineStatus: this.screenForm.status,
|
|
|
- k3ServiceId:this.screenForm.k3ServiceId,
|
|
|
+ k3ServiceId:this.screenForm.k3ServiceId,
|
|
|
serviceId:this.screenForm.serviceId,
|
|
|
type: this.screenForm.orderType,
|
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
|
+ categoryId: this.screenForm.categoryId
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -424,6 +438,7 @@ export default {
|
|
|
created() {
|
|
|
this.getSalesmanList();
|
|
|
this.getList();
|
|
|
+ this.getCategoryList();
|
|
|
},
|
|
|
activated() {
|
|
|
this.isShow = false
|
|
@@ -465,9 +480,9 @@ export default {
|
|
|
examineStatus: this.screenForm.status,
|
|
|
serviceId: this.screenForm.salesMan,
|
|
|
type: this.screenForm.orderType,
|
|
|
- k3ServiceId:this.screenForm.k3ServiceId,
|
|
|
- serviceId:this.screenForm.serviceId,
|
|
|
+ k3ServiceId:this.screenForm.k3ServiceId,
|
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
|
+ categoryId: this.screenForm.categoryId
|
|
|
};
|
|
|
getApplyList(params).then((res) => {
|
|
|
res.data.records.forEach(item => {
|
|
@@ -586,6 +601,15 @@ export default {
|
|
|
this.$successMsg('审批成功');
|
|
|
})
|
|
|
},
|
|
|
+ // 获取存货类别列表
|
|
|
+ getCategoryList() {
|
|
|
+ getCategoryList({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1
|
|
|
+ }).then(res => {
|
|
|
+ this.categoryList = res.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|