新增不良信息配置

master
yuanwei 1 year ago
parent 5af478b9c7
commit a1cf1e5b03

@ -30,3 +30,12 @@ export function deletegg(data) {
data: data data: data
}); });
} }
export function getManuList(query) {
return axios({
url: "/anno/anncmnt/manu/getList",
method: "get",
params: query
});
}

@ -30,3 +30,12 @@ export function deletegg(data) {
data: data data: data
}); });
} }
export function getYlqxzcrList(query) {
return axios({
url: "/anno/anncmnt/ylqxzcr/getList",
method: "get",
params: query
});
}

@ -30,3 +30,12 @@ export function deletegg(data) {
data: data data: data
}); });
} }
export function getYlqxzczhList(query) {
return axios({
url: "/anno/anncmnt/ylqxzczh/getList",
method: "get",
params: query
});
}

@ -344,7 +344,7 @@
import indexDialog from "@/views/anno/anncmnt/manuDialog"; import indexDialog from "@/views/anno/anncmnt/manuDialog";
import manuCertDialog from "@/views/anno/anncmnt/manuCertDialog"; import manuCertDialog from "@/views/anno/anncmnt/manuCertDialog";
import {deletegg, list} from "@/api/anno/anncmntManu"; import {deletegg, list} from "@/api/anno/anncmntManu";
import {deletCert, listCert} from "@/api/anno/anncmntManuCert"; import {deleteCert, listCert} from "@/api/anno/anncmntManuCert";
import {executeFuc, getHead} from "@/utils/customConfig"; import {executeFuc, getHead} from "@/utils/customConfig";
export default { export default {
@ -381,6 +381,7 @@ export default {
page: 1, page: 1,
limit: 10, limit: 10,
}, },
changeCode:"",
actDateRange: [], actDateRange: [],
pickerOptions: { pickerOptions: {
shortcuts: [ shortcuts: [
@ -426,6 +427,9 @@ export default {
} }
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
this.changeCode = "";
this.manuCertList = [],
this.manuCertTotal = 0
}, },
onReset() { onReset() {
this.$router.push({ this.$router.push({
@ -436,12 +440,16 @@ export default {
limit: 10, limit: 10,
}; };
this.getList(); this.getList();
this.changeCode = "";
this.manuCertList = [],
this.manuCertTotal = 0
}, },
onCertReset() { onCertReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
this.filterCertQuery = { this.filterCertQuery = {
manuCreditCode:this.changeCode,
page: 1, page: 1,
limit: 10, limit: 10,
}; };
@ -479,8 +487,13 @@ export default {
this.getCertList(); this.getCertList();
}, },
addCertMuti(){ addCertMuti(){
var changeCode = this.changeCode;
if(!changeCode){
this.$message.error("请先选择企业");
return;
}
this.inputCertQuery={ this.inputCertQuery={
manuCreditCode:changeCode
} }
this.formCertName=1; this.formCertName=1;
this.manuCertDialogVisible = true; this.manuCertDialogVisible = true;
@ -491,6 +504,7 @@ export default {
_this.manuCertDialogVisible = true; _this.manuCertDialogVisible = true;
}, },
supCertClick(_this,row) { supCertClick(_this,row) {
_this.changeCode= row.creditCode
_this.onCertReset(); _this.onCertReset();
}, },
getList() { getList() {
@ -538,7 +552,7 @@ export default {
}, },
deleteCertDialog(_this,row) { deleteCertDialog(_this,row) {
deletCert(row) deleteCert(row)
.then((response) => { .then((response) => {
if(response.code == 20000){ if(response.code == 20000){
_this.getCertList() _this.getCertList()

@ -65,13 +65,10 @@
<el-option <el-option
v-for="item in options[item.dataFuc]" v-for="item in options[item.dataFuc]"
:key="item.code" :key="item.code"
:label="item.label" :label="item.code"
:value="item.code" :value="item.code"
> >
<span style="float: left">{{ item.label }}</span> <span style="float: left">{{ item.code }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{
item.code
}}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -127,6 +124,8 @@
<script> <script>
import {saveCert} from "@/api/anno/anncmntManuCert"; import {saveCert} from "@/api/anno/anncmntManuCert";
import {getManuList} from "@/api/anno/anncmntManu";
import {getYlqxzczhList} from "@/api/anno/anncmntYlqxzczh";
import { import {
getHead,executeFuc getHead,executeFuc
} from "@/utils/customConfig"; } from "@/utils/customConfig";
@ -155,7 +154,7 @@ export default {
tableObj:[], tableObj:[],
invList:[], invList:[],
options: { options: {
getYlqxzczh:[]
} }
} }
}, },
@ -196,6 +195,25 @@ export default {
} }
return defaultRet; return defaultRet;
}, },
getYlqxzczh(_this,query) {
getYlqxzczhList()
.then((response) => {
_this.options.getYlqxzczh = response.data || []
})
.catch(() => {
_this.options.getYlqxzczh = []
});
},
changeYlqxzczh(_this,val) {
let obj = {};
obj = _this.options.getYlqxzczh.find((item)=>{ // userList
return item.code === val; //
});
_this.inputQuery.zczbhhzbapzbh = obj.code;
_this.inputQuery.ylqxzcrbarmc = obj.regCompanyName;
_this.inputQuery.regCreditCode = obj.regCreditCode;
_this.inputQuery.productName = obj.productName;
},
change(_this) { change(_this) {
var pinyin = require("pinyin"); var pinyin = require("pinyin");
var py = pinyin(_this.inputQuery.name, { var py = pinyin(_this.inputQuery.name, {
@ -218,7 +236,7 @@ export default {
this.queryList = re.data.queryList; this.queryList = re.data.queryList;
this.fromList = re.data.fromList; this.fromList = re.data.fromList;
}); });
this.getYlqxzczh(this);
}, },
} }
</script> </script>

@ -87,18 +87,6 @@
:placeholder="item.columnDesc" :placeholder="item.columnDesc"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item v-if="item.columnType =='datetime'" :rules="item.checkRulesObj" :prop="item.columnName">
<span slot="label">
{{item.columnDesc}}
</span>
<el-date-picker
v-model="inputQuery[item.columnName]"
:style="item.style"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType =='treeCustom'" :prop="item.columnName"> <el-form-item v-if="item.columnType =='treeCustom'" :prop="item.columnName">
<span slot="label"> <span slot="label">
{{item.columnDesc}} {{item.columnDesc}}

@ -191,7 +191,7 @@
<el-card class="el-card"> <el-card class="el-card">
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="addCertMuti">/</el-button> <el-button type="primary" icon="el-icon-refresh" @click="addCertMuti"></el-button>
</el-button-group> </el-button-group>
</div> </div>
@ -344,7 +344,7 @@
import indexDialog from "@/views/anno/anncmnt/productDialog"; import indexDialog from "@/views/anno/anncmnt/productDialog";
import manuCertDialog from "@/views/anno/anncmnt/productCertDialog"; import manuCertDialog from "@/views/anno/anncmnt/productCertDialog";
import {deletegg, list} from "@/api/anno/anncmntProduct"; import {deletegg, list} from "@/api/anno/anncmntProduct";
import {deletCert, listCert} from "@/api/anno/anncmntProductBatch"; import {deleteCert, listCert} from "@/api/anno/anncmntProductBatch";
import {executeFuc, getHead} from "@/utils/customConfig"; import {executeFuc, getHead} from "@/utils/customConfig";
export default { export default {
@ -369,8 +369,8 @@ export default {
formCertName: 1, formCertName: 1,
formCertMap: { formCertMap: {
1: "新增产品信息明细", 1: "新增产品批次",
2: "编辑产品信息明细", 2: "编辑产品批次",
}, },
inputCertQuery:{}, inputCertQuery:{},
manuCertDialogVisible: false, manuCertDialogVisible: false,
@ -381,6 +381,7 @@ export default {
page: 1, page: 1,
limit: 10, limit: 10,
}, },
changeCode:"",
actDateRange: [], actDateRange: [],
pickerOptions: { pickerOptions: {
shortcuts: [ shortcuts: [
@ -426,6 +427,9 @@ export default {
} }
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
this.changeCode = "";
this.manuCertList = [],
this.manuCertTotal = 0
}, },
onReset() { onReset() {
this.$router.push({ this.$router.push({
@ -436,12 +440,16 @@ export default {
limit: 10, limit: 10,
}; };
this.getList(); this.getList();
this.changeCode = "";
this.manuCertList = [],
this.manuCertTotal = 0
}, },
onCertReset() { onCertReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
this.filterCertQuery = { this.filterCertQuery = {
productIdFk:this.changeCode,
page: 1, page: 1,
limit: 10, limit: 10,
}; };
@ -479,9 +487,15 @@ export default {
this.getCertList(); this.getCertList();
}, },
addCertMuti(){ addCertMuti(){
this.inputCertQuery={ var changeCode = this.changeCode;
if(!changeCode){
} this.$message.error("请先选择产品");
return;
}
this.inputCertQuery={
productIdFk:changeCode,
productName:this.changeName
}
this.formCertName=1; this.formCertName=1;
this.manuCertDialogVisible = true; this.manuCertDialogVisible = true;
}, },
@ -491,6 +505,8 @@ export default {
_this.manuCertDialogVisible = true; _this.manuCertDialogVisible = true;
}, },
supCertClick(_this,row) { supCertClick(_this,row) {
_this.changeCode= row.id
_this.changeName= row.productName
_this.onCertReset(); _this.onCertReset();
}, },
getList() { getList() {
@ -538,7 +554,7 @@ export default {
}, },
deleteCertDialog(_this,row) { deleteCertDialog(_this,row) {
deletCert(row) deleteCert(row)
.then((response) => { .then((response) => {
if(response.code == 20000){ if(response.code == 20000){
_this.getCertList() _this.getCertList()

@ -65,13 +65,10 @@
<el-option <el-option
v-for="item in options[item.dataFuc]" v-for="item in options[item.dataFuc]"
:key="item.code" :key="item.code"
:label="item.label" :label="item.code"
:value="item.code" :value="item.code"
> >
<span style="float: left">{{ item.label }}</span> <span style="float: left">{{ item.code }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{
item.code
}}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -87,18 +84,6 @@
:placeholder="item.columnDesc" :placeholder="item.columnDesc"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item v-if="item.columnType =='datetime'" :rules="item.checkRulesObj" :prop="item.columnName">
<span slot="label">
{{item.columnDesc}}
</span>
<el-date-picker
v-model="inputQuery[item.columnName]"
:style="item.style"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType =='treeCustom'" :prop="item.columnName"> <el-form-item v-if="item.columnType =='treeCustom'" :prop="item.columnName">
<span slot="label"> <span slot="label">
{{item.columnDesc}} {{item.columnDesc}}
@ -127,6 +112,8 @@
<script> <script>
import {savegg} from "@/api/anno/anncmntProduct"; import {savegg} from "@/api/anno/anncmntProduct";
import {getManuList} from "@/api/anno/anncmntManu";
import {getYlqxzczhList} from "@/api/anno/anncmntYlqxzczh";
import { import {
getHead,executeFuc getHead,executeFuc
} from "@/utils/customConfig"; } from "@/utils/customConfig";
@ -155,7 +142,8 @@ export default {
tableObj:[], tableObj:[],
invList:[], invList:[],
options: { options: {
getYlqxzczh:[],
getManu:[],
} }
} }
}, },
@ -187,6 +175,40 @@ export default {
}); });
} }
}, },
getYlqxzczh(_this,query) {
getYlqxzczhList()
.then((response) => {
_this.options.getYlqxzczh = response.data || []
})
.catch(() => {
_this.options.getYlqxzczh = []
});
},
changeYlqxzczh(_this,val) {
let obj = {};
obj = _this.options.getYlqxzczh.find((item)=>{ // userList
return item.code === val; //
});
_this.inputQuery.ylqxzcrbarmc = obj.regCompanyName;
_this.inputQuery.regCreditCode = obj.code;
},
getManu(_this,query) {
getManuList()
.then((response) => {
_this.options.getManu = response.data || []
})
.catch(() => {
_this.options.getManu = []
});
},
changeManu(_this,val) {
let obj = {};
obj = _this.options.getManu.find((item)=>{ // userList
return item.code === val; //
});
_this.inputQuery.manuCreditCode = obj.code;
_this.inputQuery.manuName = obj.label;
},
executeFuc(row,type,clickFuc,value){ executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value); return executeFuc(this,row,type,clickFuc,value);
}, },
@ -218,7 +240,8 @@ export default {
this.queryList = re.data.queryList; this.queryList = re.data.queryList;
this.fromList = re.data.fromList; this.fromList = re.data.fromList;
}); });
this.getYlqxzczh(this);
this.getManu(this);
}, },
} }
</script> </script>

@ -82,8 +82,8 @@
<el-date-picker <el-date-picker
v-model="inputQuery[item.columnName]" v-model="inputQuery[item.columnName]"
:style="item.style" :style="item.style"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd"
type="datetime" type="date"
:placeholder="item.columnDesc" :placeholder="item.columnDesc"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>

@ -65,7 +65,7 @@
<el-option <el-option
v-for="item in options[item.dataFuc]" v-for="item in options[item.dataFuc]"
:key="item.code" :key="item.code"
:label="item.label" :label="item.code"
:value="item.code" :value="item.code"
> >
<span style="float: left">{{ item.label }}</span> <span style="float: left">{{ item.label }}</span>
@ -87,18 +87,6 @@
:placeholder="item.columnDesc" :placeholder="item.columnDesc"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item v-if="item.columnType =='datetime'" :rules="item.checkRulesObj" :prop="item.columnName">
<span slot="label">
{{item.columnDesc}}
</span>
<el-date-picker
v-model="inputQuery[item.columnName]"
:style="item.style"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType =='treeCustom'" :prop="item.columnName"> <el-form-item v-if="item.columnType =='treeCustom'" :prop="item.columnName">
<span slot="label"> <span slot="label">
{{item.columnDesc}} {{item.columnDesc}}
@ -127,6 +115,7 @@
<script> <script>
import {savegg} from "@/api/anno/anncmntYlqxzczh"; import {savegg} from "@/api/anno/anncmntYlqxzczh";
import {getYlqxzcrList} from "@/api/anno/anncmntYlqxzcr";
import { import {
getHead,executeFuc getHead,executeFuc
} from "@/utils/customConfig"; } from "@/utils/customConfig";
@ -155,7 +144,7 @@ export default {
tableObj:[], tableObj:[],
invList:[], invList:[],
options: { options: {
getYlqxzcr:[],
} }
} }
}, },
@ -196,6 +185,24 @@ export default {
} }
return defaultRet; return defaultRet;
}, },
getYlqxzcr(_this,query) {
getYlqxzcrList()
.then((response) => {
_this.options.getYlqxzcr = response.data || []
})
.catch(() => {
_this.options.getYlqxzcr = []
});
},
changeYlqxzcr(_this,val) {
let obj = {};
obj = _this.options.getYlqxzcr.find((item)=>{ // userList
return item.code === val; //
});
_this.inputQuery.regCompanyName = obj.label;
_this.inputQuery.regCreditCode = obj.code;
console.log(_this.inputQuery)
},
change(_this) { change(_this) {
var pinyin = require("pinyin"); var pinyin = require("pinyin");
var py = pinyin(_this.inputQuery.name, { var py = pinyin(_this.inputQuery.name, {
@ -218,7 +225,7 @@ export default {
this.queryList = re.data.queryList; this.queryList = re.data.queryList;
this.fromList = re.data.fromList; this.fromList = re.data.fromList;
}); });
this.getYlqxzcr(this);
}, },
} }
</script> </script>

Loading…
Cancel
Save