product
杨世强 2 years ago
parent 4a89296ff4
commit c94975cc05

@ -1211,7 +1211,7 @@
contractCodecolumnOptions:[ {"label":"合同编码","value":"contract_code"}, {"label":"合同名称","value":"contract_name"}, {"label":"合同类型","value":"contract_type"}, {"label":"客户ID","value":"code"}, {"label":"客户名称","value":"name"},], contractCodecolumnOptions:[ {"label":"合同编码","value":"contract_code"}, {"label":"合同名称","value":"contract_name"}, {"label":"合同类型","value":"contract_type"}, {"label":"客户ID","value":"code"}, {"label":"客户名称","value":"name"},],
costomerCodecolumnOptions:[ {"label":"客户编码","value":"supplier_cd"}, {"label":"客户名称","value":"supplier_nm"}, {"label":"联系人","value":"contact_name"}, {"label":"联系电话","value":"contact_phone"}, {"label":"地址","value":"address"},], costomerCodecolumnOptions:[ {"label":"客户编码","value":"supplier_cd"}, {"label":"客户名称","value":"supplier_nm"}, {"label":"联系人","value":"contact_name"}, {"label":"联系电话","value":"contact_phone"}, {"label":"地址","value":"address"},],
currencyOptions:[{"fullName":"人民币","id":"0"},{"fullName":"美元","id":"1"},{"fullName":"英镑","id":"2"}], currencyOptions:[{"fullName":"人民币","id":"0"},{"fullName":"美元","id":"1"},{"fullName":"英镑","id":"2"}],
statusOptions:[{"fullName":"已保存","id":"0"},{"fullName":"开票","id":"1"},{"fullName":"付款申请","id":"2"},{"fullName":"待回款","id":"3"},{"fullName":"回款中","id":"4"},{"fullName":"归档","id":"5"}], statusOptions:[{"fullName":"待发货","id":"0"},{"fullName":"开票","id":"1"},{"fullName":"待回款","id":"2"},{"fullName":"归档","id":"3"}],
salesorder_item0vehicleIdcolumnOptions:[ {"label":"车牌号","value":"ticketno"}, {"label":"物料名称","value":"materialName"},{"label":"磅单类型","value":"pound_type"}, salesorder_item0vehicleIdcolumnOptions:[ {"label":"车牌号","value":"ticketno"}, {"label":"物料名称","value":"materialName"},{"label":"磅单类型","value":"pound_type"},
{"label":"净重","value":"net_weight"}, {"label":"单位","value":"unit"}, {"label":"是否垫资","value":"advance"}, {"label":"净重","value":"net_weight"}, {"label":"单位","value":"unit"}, {"label":"是否垫资","value":"advance"},

@ -231,6 +231,7 @@
import request from '@/utils/request' import request from '@/utils/request'
import { getDataInterfaceRes } from '@/api/systemData/dataInterface' import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
import { getDictionaryDataSelector } from '@/api/systemData/dictionary' import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
import { message } from '@/utils/message'
export default { export default {
components: {}, components: {},
props: [], props: [],
@ -288,7 +289,7 @@
for(let i=0;i<this.dataForm.collection_item0List.length;i++){ for(let i=0;i<this.dataForm.collection_item0List.length;i++){
const e = this.dataForm.collection_item0List[i]; const e = this.dataForm.collection_item0List[i];
} }
return isOk; return isOk;
}, },
clearData(data){ clearData(data){
for (let key in data) { for (let key in data) {
@ -325,6 +326,16 @@
}, },
request() { request() {
var _data =this.dataList() var _data =this.dataList()
for(let i=0;i<this.dataForm.collection_item0List.length;i++) {
if (this.dataForm.collection_item0List[i].amount > this.dataForm.collection_item0List[i].price) {
this.$message({
message: '收款金额不能大于金额',
type: 'error',
duration: 1000
})
return this.$message
}
}
if (!this.dataForm.id) { if (!this.dataForm.id) {
request({ request({
url: '/api/collection/Collection', url: '/api/collection/Collection',

@ -174,7 +174,7 @@ width="150" >
], ],
currencyOptions:[{"fullName":"人民币","id":"0"},{"fullName":"美元","id":"1"},{"fullName":"英镑","id":"2"}], currencyOptions:[{"fullName":"人民币","id":"0"},{"fullName":"美元","id":"1"},{"fullName":"英镑","id":"2"}],
currencyProps:{"label":"fullName","value":"id"}, currencyProps:{"label":"fullName","value":"id"},
statusOptions:[{"fullName":"已保存","id":"0"},{"fullName":"开票","id":"1"},{"fullName":"付款申请","id":"2"},{"fullName":"待回款","id":"3"},{"fullName":"回款中","id":"4"},{"fullName":"归档","id":"5"}], statusOptions:[{"fullName":"待发货","id":"0"},{"fullName":"开票","id":"1"},{"fullName":"待回款","id":"2"},{"fullName":"归档","id":"3"}],
statusProps:{"label":"fullName","value":"id"}, statusProps:{"label":"fullName","value":"id"},
} }
}, },

Loading…
Cancel
Save