客户质量模块
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2023-02-14 15:02:26
|
||||
* @LastEditTime: 2023-07-12 16:20:26
|
||||
* @LastEditTime: 2023-07-13 10:13:27
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
@@ -90,7 +90,7 @@ export default {
|
||||
// 获取信息
|
||||
getInfo() {
|
||||
this.$http
|
||||
.get(`/supplier/qmsProjectType/${this.dataForm.id}`)
|
||||
.get(`/supplier/qmsSupplierRequirementListGroup/${this.dataForm.id}`)
|
||||
.then(({ data: res }) => {
|
||||
if (res.code !== 0) {
|
||||
return this.$message.error(res.msg);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2023-04-17 14:23:17
|
||||
* @LastEditTime: 2023-07-11 14:35:52
|
||||
* @LastEditTime: 2023-07-13 11:15:39
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
@@ -16,7 +16,7 @@
|
||||
</el-radio-group>
|
||||
</SearchBar>
|
||||
<base-table id="palletTable" :table-props="tableProps" :page="listQuery.page" ref="palletTable1"
|
||||
@emitFun="inputChange" @emitButtonClick="emitButtonClick" :limit="listQuery.limit"
|
||||
@emitFun="inputChange" :limit="listQuery.limit"
|
||||
:table-data="tableData" >
|
||||
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" label="操作" :method-list="tableBtn"
|
||||
@clickBtn="handleClick" />
|
||||
@@ -117,6 +117,7 @@ export default {
|
||||
urlOptions: {
|
||||
getDataListURL: "/supplier/qmsSupplier/page",
|
||||
deleteURL: "/supplier/qmsSupplier",
|
||||
submitURL: "/supplier/qmsSupplier",
|
||||
exportURL: '/supplier/qmsSupplier/export',
|
||||
getSupplierTypeListURL: '/supplier/qmsSupplierType/page'
|
||||
// submitURL: '/supplier/qmsSupplierType'
|
||||
@@ -216,15 +217,29 @@ export default {
|
||||
console.log(val)
|
||||
this.tableData[val._pageIndex - 1][val.prop] = val[val.prop]
|
||||
console.log(this.tableData)
|
||||
this.$http.put(this.urlOptions.submitURL, this.tableData[val._pageIndex - 1])
|
||||
.then(({ data: res }) => {
|
||||
if (res.code !== 0) {
|
||||
return this.$message.error(res.msg);
|
||||
}
|
||||
this.$message({
|
||||
message: this.$t("prompt.success"),
|
||||
type: "success",
|
||||
duration: 500,
|
||||
onClose: () => {
|
||||
this.getDataList()
|
||||
},
|
||||
});
|
||||
})
|
||||
},
|
||||
emitButtonClick() {
|
||||
console.log('emitButtonClick')
|
||||
let obj = {}
|
||||
for (let i of this.tableData) {
|
||||
obj[i.prop] = ''
|
||||
}
|
||||
this.tableData.push(obj)
|
||||
},
|
||||
// emitButtonClick() {
|
||||
// console.log('emitButtonClick')
|
||||
// let obj = {}
|
||||
// for (let i of this.tableData) {
|
||||
// obj[i.prop] = ''
|
||||
// }
|
||||
// this.tableData.push(obj)
|
||||
// },
|
||||
getData() {
|
||||
this.$http
|
||||
.get(this.urlOptions.getSupplierTypeListURL, { params: this.listQuery })
|
||||
|
||||
Reference in New Issue
Block a user