Browse Source

2024-09-13 单据客户查询

master
qiezi 1 year ago
parent
commit
f789d10a40
  1. 3
      src/api/customer/customerInformation.js
  2. 34
      src/views/modules/proofing/requestForProofing.vue
  3. 24
      src/views/modules/quotation/requestForQuote.vue
  4. 24
      src/views/modules/quotation/sellForQuotation.vue
  5. 12
      src/views/modules/sys/user.vue
  6. 23
      src/views/modules/test/requestForTest.vue

3
src/api/customer/customerInformation.js

@ -32,3 +32,6 @@ export const customerInformationSearchForCheck= data => createAPI(`/plm/customer
* @returns {*} * @returns {*}
*/ */
export const checkCustomerGroup = data => createAPI(`/plm/customerInformation/checkCustomerGroup`,'post',data) export const checkCustomerGroup = data => createAPI(`/plm/customerInformation/checkCustomerGroup`,'post',data)
export const queryCustomer = (data) => createAPI(`/customer`,'post',data)

34
src/views/modules/proofing/requestForProofing.vue

@ -183,7 +183,7 @@
<el-form-item prop="customerNo" label="客户编码"> <el-form-item prop="customerNo" label="客户编码">
<span style="cursor: pointer" slot="label" v-if="modalData.flag === '1'" <span style="cursor: pointer" slot="label" v-if="modalData.flag === '1'"
@click="getBaseList(102,1)"><a herf="#">客户编码</a></span> @click="getBaseList(102,1)"><a herf="#">客户编码</a></span>
<el-input :disabled="modalData.flag !== '1' && columnFlagByHeader('customerNo')" v-model="modalData.customerNo"></el-input>
<el-input :disabled="modalData.flag !== '1' && columnFlagByHeader('customerNo')" v-model="modalData.customerNo" @blur="handleQueryCustomer"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
@ -1069,6 +1069,7 @@ import {getNodeAuthority} from "../../../api/changeManagement/changeManagement";
import ProjectInfo from "../quotation/sellForQuotation/projectInfo.vue"; import ProjectInfo from "../quotation/sellForQuotation/projectInfo.vue";
import profingFile from "./profingFile" import profingFile from "./profingFile"
import proofingAttribute from "../demoComponents/orderProperties" import proofingAttribute from "../demoComponents/orderProperties"
import {queryCustomer} from "../../../api/customer/customerInformation";
export default { export default {
components: { components: {
@ -1404,7 +1405,7 @@ export default {
tableName: '打样信息表', tableName: '打样信息表',
columnProp: 'customerDesc', columnProp: 'customerDesc',
headerAlign: 'center', headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '客户名称', columnLabel: '客户名称',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
@ -1440,7 +1441,7 @@ export default {
tableName: '打样信息表', tableName: '打样信息表',
columnProp: 'projectName', columnProp: 'projectName',
headerAlign: 'center', headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '项目名称', columnLabel: '项目名称',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
@ -1530,7 +1531,7 @@ export default {
tableName: '打样信息表', tableName: '打样信息表',
columnProp: 'partName', columnProp: 'partName',
headerAlign: 'center', headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '物料名称', columnLabel: '物料名称',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
@ -1566,7 +1567,7 @@ export default {
tableName: '打样信息表', tableName: '打样信息表',
columnProp: 'proofingNumber', columnProp: 'proofingNumber',
headerAlign: 'center', headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '打样数量', columnLabel: '打样数量',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
@ -1602,7 +1603,7 @@ export default {
tableName: '打样信息表', tableName: '打样信息表',
columnProp: 'proofingStatus', columnProp: 'proofingStatus',
headerAlign: 'center', headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '状态', columnLabel: '状态',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
@ -1620,7 +1621,7 @@ export default {
tableName: '打样信息表', tableName: '打样信息表',
columnProp: 'nodeName', columnProp: 'nodeName',
headerAlign: 'center', headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '当前节点', columnLabel: '当前节点',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
@ -3588,6 +3589,25 @@ export default {
} }
}) })
}, },
handleQueryCustomer(){
let params = {
site:this.$store.state.user.site,
customerNo:this.modalData.customerNo
}
queryCustomer(params).then(({data})=>{
if (data && data.code === 0 ) {
if (data.rows && data.rows.length === 1){
this.modalData.customerDesc = data.rows[0].customerDesc
}else {
this.modalData.customerDesc = ''
}
}else {
this.$message.warning(data.msg)
}
}).catch((error)=>{
this.$message.error(error)
})
},
} }
} }
</script> </script>

24
src/views/modules/quotation/requestForQuote.vue

@ -183,7 +183,7 @@
<span style="cursor: pointer" slot="label" v-if="modalData.flag === '1'" @click="getBaseList(102,1)"><a herf="#">客户编码</a></span> <span style="cursor: pointer" slot="label" v-if="modalData.flag === '1'" @click="getBaseList(102,1)"><a herf="#">客户编码</a></span>
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="8"> <el-col :span="8">
<el-input :disabled="modalData.flag !== '1'" v-model="modalData.customerNo"></el-input>
<el-input :disabled="modalData.flag !== '1'" v-model="modalData.customerNo" @blur="handleQueryCustomer"></el-input>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
<el-input disabled v-model="modalData.customerDesc"></el-input> <el-input disabled v-model="modalData.customerDesc"></el-input>
@ -1037,6 +1037,7 @@ import {getPriceCheckPropertiesList} from "../../../api/quotation/priceCheckProp
import PriceCheckDetail from "./sellForQuotation/priceCheckDetail/priceCheckDetail.vue"; import PriceCheckDetail from "./sellForQuotation/priceCheckDetail/priceCheckDetail.vue";
import {getPriceCheckDetailList} from "../../../api/quotation/priceCheckDetail"; import {getPriceCheckDetailList} from "../../../api/quotation/priceCheckDetail";
import InquiryQuoteDetail from "./inquiry/inquiryQuoteDetail.vue"; import InquiryQuoteDetail from "./inquiry/inquiryQuoteDetail.vue";
import {queryCustomer} from "../../../api/customer/customerInformation";
export default { export default {
computed: { computed: {
@ -3421,8 +3422,25 @@ export default {
} }
}) })
}, },
handleQueryCustomer(){
let params = {
site:this.$store.state.user.site,
customerNo:this.modalData.customerNo
}
queryCustomer(params).then(({data})=>{
if (data && data.code === 0 ) {
if (data.rows && data.rows.length === 1){
this.modalData.customerDesc = data.rows[0].customerDesc
}else {
this.modalData.customerDesc = ''
}
}else {
this.$message.warning(data.msg)
}
}).catch((error)=>{
this.$message.error(error)
})
},
} }
} }
</script> </script>

24
src/views/modules/quotation/sellForQuotation.vue

@ -192,7 +192,7 @@
<span slot="label" style="" v-if="insertData.internalInquiryNo ===''" @click="getBaseList(102,1)"><a <span slot="label" style="" v-if="insertData.internalInquiryNo ===''" @click="getBaseList(102,1)"><a
herf="#">客户编码</a></span> herf="#">客户编码</a></span>
<el-input v-model="insertData.customerNo" :disabled="insertData.internalInquiryNo !==''" <el-input v-model="insertData.customerNo" :disabled="insertData.internalInquiryNo !==''"
clearable @change="clearCustomer"/>
clearable @change="clearCustomer" @blur="handleQueryCustomer"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
@ -400,6 +400,7 @@ import QuoteDetail from "./sellForQuotation/quoteDetail.vue";
import {searchProjectInfoList} from "../../../api/quotation/quotationInformation"; import {searchProjectInfoList} from "../../../api/quotation/quotationInformation";
import {getQuotationHeaderByPagePost, updateQuoteStatus} from "../../../api/quotation/quotationHeader"; import {getQuotationHeaderByPagePost, updateQuoteStatus} from "../../../api/quotation/quotationHeader";
import {getQuotePage} from "../../../api/quotation/quote"; import {getQuotePage} from "../../../api/quotation/quote";
import {queryCustomer} from "../../../api/customer/customerInformation";
export default { export default {
components: { components: {
@ -1293,7 +1294,26 @@ export default {
this.initData();// this.initData();//
} }
this.initPage = true; this.initPage = true;
}
},
handleQueryCustomer(){
let params = {
site:this.$store.state.user.site,
customerNo:this.insertData.customerNo
}
queryCustomer(params).then(({data})=>{
if (data && data.code === 0 ) {
if (data.rows && data.rows.length === 1){
this.insertData.customerName = data.rows[0].customerDesc
}else {
this.insertData.customerName = ''
}
}else {
this.$message.warning(data.msg)
}
}).catch((error)=>{
this.$message.error(error)
})
},
}, },
computed: {}, computed: {},
watch: { watch: {

12
src/views/modules/sys/user.vue

@ -118,7 +118,7 @@
<a v-if="isAuth('sys:user:update')" type="text" size="small" <a v-if="isAuth('sys:user:update')" type="text" size="small"
@click="addOrUpdateHandle(scope.row.userId)">{{ buttons.edit || '修改' }}</a> @click="addOrUpdateHandle(scope.row.userId)">{{ buttons.edit || '修改' }}</a>
<a v-if="isAuth('sys:user:delete')" type="text" size="small" <a v-if="isAuth('sys:user:delete')" type="text" size="small"
@click="deleteHandle(scope.row.userId)">{{ buttons.delete || '删除' }}</a>
@click="deleteHandle(scope.row)">{{ buttons.delete || '删除' }}</a>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -1257,12 +1257,8 @@ export default {
}) })
}, },
// //
deleteHandle(id) {
var userIds = id ? [id] : this.dataListSelections.map(item => {
return item.userId
})
let usernames = this.dataList.filter(item => item.userId === id).map(item=>item.username)
this.$confirm(`确定对[用户账号${usernames.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
deleteHandle(row) {
this.$confirm(`确定要删除 [用户账号 : ${row.username} , 用户名 : ${row.userDisplay}] ?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -1270,7 +1266,7 @@ export default {
this.$http({ this.$http({
url: this.$http.adornUrl('/sys/user/delete'), url: this.$http.adornUrl('/sys/user/delete'),
method: 'post', method: 'post',
data: this.$http.adornData(userIds, false)
data: this.$http.adornData([row.userId], false)
}).then(({data}) => { }).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message.success('操作成功') this.$message.success('操作成功')

23
src/views/modules/test/requestForTest.vue

@ -171,7 +171,7 @@
<el-col :span="10"> <el-col :span="10">
<el-form-item prop="customerNo" label="客户编码"> <el-form-item prop="customerNo" label="客户编码">
<span slot="label" v-if="modalData.flag === '1'" @click="getBaseList(102,1)"><a herf="#">客户编码</a></span> <span slot="label" v-if="modalData.flag === '1'" @click="getBaseList(102,1)"><a herf="#">客户编码</a></span>
<el-input :disabled="modalData.flag !== '1'" v-model="modalData.customerNo"></el-input>
<el-input :disabled="modalData.flag !== '1'" v-model="modalData.customerNo" @blur="handleQueryCustomer"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
@ -1167,6 +1167,7 @@
import TestProperties from "./testAttribute/testProperties.vue"; import TestProperties from "./testAttribute/testProperties.vue";
import {getTestPropertiesList,searchTestPropertiesItem} from "../../../api/test/testProperties"; import {getTestPropertiesList,searchTestPropertiesItem} from "../../../api/test/testProperties";
import TestFile from "./file/testFile.vue"; import TestFile from "./file/testFile.vue";
import {queryCustomer} from "../../../api/customer/customerInformation";
export default { export default {
computed: { computed: {
testInformationFlag () { testInformationFlag () {
@ -3622,7 +3623,25 @@
} }
}) })
}, },
handleQueryCustomer(){
let params = {
site:this.$store.state.user.site,
customerNo:this.modalData.customerNo
}
queryCustomer(params).then(({data})=>{
if (data && data.code === 0 ) {
if (data.rows && data.rows.length === 1){
this.modalData.customerDesc = data.rows[0].customerDesc
}else {
this.modalData.customerDesc = ''
}
}else {
this.$message.warning(data.msg)
}
}).catch((error)=>{
this.$message.error(error)
})
},
} }
} }
</script> </script>

Loading…
Cancel
Save