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 {*}
*/
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="客户编码">
<span style="cursor: pointer" slot="label" v-if="modalData.flag === '1'"
@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-col>
<el-col :span="14">
@ -1069,6 +1069,7 @@ import {getNodeAuthority} from "../../../api/changeManagement/changeManagement";
import ProjectInfo from "../quotation/sellForQuotation/projectInfo.vue";
import profingFile from "./profingFile"
import proofingAttribute from "../demoComponents/orderProperties"
import {queryCustomer} from "../../../api/customer/customerInformation";
export default {
components: {
@ -1404,7 +1405,7 @@ export default {
tableName: '打样信息表',
columnProp: 'customerDesc',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '客户名称',
columnHidden: false,
columnImage: false,
@ -1440,7 +1441,7 @@ export default {
tableName: '打样信息表',
columnProp: 'projectName',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '项目名称',
columnHidden: false,
columnImage: false,
@ -1530,7 +1531,7 @@ export default {
tableName: '打样信息表',
columnProp: 'partName',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
@ -1566,7 +1567,7 @@ export default {
tableName: '打样信息表',
columnProp: 'proofingNumber',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '打样数量',
columnHidden: false,
columnImage: false,
@ -1602,7 +1603,7 @@ export default {
tableName: '打样信息表',
columnProp: 'proofingStatus',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '状态',
columnHidden: false,
columnImage: false,
@ -1620,7 +1621,7 @@ export default {
tableName: '打样信息表',
columnProp: 'nodeName',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '当前节点',
columnHidden: 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>

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>
<el-row :gutter="10">
<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 :span="16">
<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 {getPriceCheckDetailList} from "../../../api/quotation/priceCheckDetail";
import InquiryQuoteDetail from "./inquiry/inquiryQuoteDetail.vue";
import {queryCustomer} from "../../../api/customer/customerInformation";
export default {
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>

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

@ -192,7 +192,7 @@
<span slot="label" style="" v-if="insertData.internalInquiryNo ===''" @click="getBaseList(102,1)"><a
herf="#">客户编码</a></span>
<el-input v-model="insertData.customerNo" :disabled="insertData.internalInquiryNo !==''"
clearable @change="clearCustomer"/>
clearable @change="clearCustomer" @blur="handleQueryCustomer"/>
</el-form-item>
</el-col>
<el-col :span="16">
@ -400,6 +400,7 @@ import QuoteDetail from "./sellForQuotation/quoteDetail.vue";
import {searchProjectInfoList} from "../../../api/quotation/quotationInformation";
import {getQuotationHeaderByPagePost, updateQuoteStatus} from "../../../api/quotation/quotationHeader";
import {getQuotePage} from "../../../api/quotation/quote";
import {queryCustomer} from "../../../api/customer/customerInformation";
export default {
components: {
@ -1293,7 +1294,26 @@ export default {
this.initData();//
}
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: {},
watch: {

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

@ -118,7 +118,7 @@
<a v-if="isAuth('sys:user:update')" type="text" size="small"
@click="addOrUpdateHandle(scope.row.userId)">{{ buttons.edit || '修改' }}</a>
<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>
</el-table-column>
</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: '确定',
cancelButtonText: '取消',
type: 'warning'
@ -1270,7 +1266,7 @@ export default {
this.$http({
url: this.$http.adornUrl('/sys/user/delete'),
method: 'post',
data: this.$http.adornData(userIds, false)
data: this.$http.adornData([row.userId], false)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message.success('操作成功')

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

@ -171,7 +171,7 @@
<el-col :span="10">
<el-form-item prop="customerNo" label="客户编码">
<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-col>
<el-col :span="14">
@ -1167,6 +1167,7 @@
import TestProperties from "./testAttribute/testProperties.vue";
import {getTestPropertiesList,searchTestPropertiesItem} from "../../../api/test/testProperties";
import TestFile from "./file/testFile.vue";
import {queryCustomer} from "../../../api/customer/customerInformation";
export default {
computed: {
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>

Loading…
Cancel
Save