完善多账户和销售人员的展示
This commit is contained in:
@@ -548,7 +548,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
|
||||||
{{model.salesMan}}
|
{{model.salesManStr}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -634,7 +634,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
|
||||||
{{model.salesMan}}
|
{{model.salesManStr}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -736,7 +736,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
|
||||||
{{model.salesMan}}
|
{{model.salesManStr}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -84,11 +84,15 @@
|
|||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
|
||||||
<a-select placeholder="选择结算账户" v-decorator="[ 'accountId' ]" :dropdownMatchSelectWidth="false">
|
<a-select style="width:185px;" placeholder="选择结算账户" v-decorator="[ 'accountId' ]"
|
||||||
|
:dropdownMatchSelectWidth="false" allowClear @select="selectAccount">
|
||||||
<a-select-option v-for="(item,index) in accountList" :key="index" :value="item.id">
|
<a-select-option v-for="(item,index) in accountList" :key="index" :value="item.id">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
<a-tooltip title="多账户明细">
|
||||||
|
<a-button type="default" icon="folder" style="margin-left: 8px;" size="small" v-show="manyAccountBtnStatus" @click="handleManyAccount"/>
|
||||||
|
</a-tooltip>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
@@ -110,11 +114,13 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
|
<many-account-modal ref="manyAccountModalForm" @ok="manyAccountModalFormOk"></many-account-modal>
|
||||||
<link-bill-list ref="linkBillList" @ok="linkBillListOk"></link-bill-list>
|
<link-bill-list ref="linkBillList" @ok="linkBillListOk"></link-bill-list>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
|
import ManyAccountModal from '../dialog/ManyAccountModal'
|
||||||
import LinkBillList from '../dialog/LinkBillList'
|
import LinkBillList from '../dialog/LinkBillList'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
@@ -127,6 +133,7 @@
|
|||||||
name: "SaleOutModal",
|
name: "SaleOutModal",
|
||||||
mixins: [JEditableTableMixin, BillModalMixin],
|
mixins: [JEditableTableMixin, BillModalMixin],
|
||||||
components: {
|
components: {
|
||||||
|
ManyAccountModal,
|
||||||
LinkBillList,
|
LinkBillList,
|
||||||
JDate,
|
JDate,
|
||||||
JSelectMultiple
|
JSelectMultiple
|
||||||
@@ -238,6 +245,11 @@
|
|||||||
totalPrice += item.allPrice-0
|
totalPrice += item.allPrice-0
|
||||||
}
|
}
|
||||||
billMain.totalPrice = totalPrice
|
billMain.totalPrice = totalPrice
|
||||||
|
if(billMain.accountId === 0) {
|
||||||
|
billMain.accountId = ''
|
||||||
|
}
|
||||||
|
billMain.accountIdList = this.accountIdList.length>0 ? JSON.stringify(this.accountIdList) : ""
|
||||||
|
billMain.accountMoneyList = this.accountMoneyList.length>0 ? JSON.stringify(this.accountMoneyList) : ""
|
||||||
if(this.model.id){
|
if(this.model.id){
|
||||||
billMain.id = this.model.id
|
billMain.id = this.model.id
|
||||||
}
|
}
|
||||||
@@ -247,6 +259,13 @@
|
|||||||
rows: JSON.stringify(detailArr),
|
rows: JSON.stringify(detailArr),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
manyAccountModalFormOk(idList, moneyList, allPrice) {
|
||||||
|
this.accountIdList = idList
|
||||||
|
this.accountMoneyList = moneyList
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form.setFieldsValue({'changeAmount':allPrice})
|
||||||
|
});
|
||||||
|
},
|
||||||
onSearchLinkNumber() {
|
onSearchLinkNumber() {
|
||||||
this.$refs.linkBillList.show("销售订单", '客户')
|
this.$refs.linkBillList.show("销售订单", '客户')
|
||||||
this.$refs.linkBillList.title = "选择销售订单"
|
this.$refs.linkBillList.title = "选择销售订单"
|
||||||
|
|||||||
Reference in New Issue
Block a user