123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- <template>
- <el-dialog
- title="账单异常"
- append-to-body
- :close-on-click-modal="false"
- :visible.sync="visible"
- width="60%"
- :show-close="false"
- >
- <el-row style="margin: 20px 0">
- <el-col :span="8" v-if="detail.merchantCheckCode">经销商:{{ detail.merchantName }}</el-col>
- <el-col :span="8">对账月份:{{ detail.autoCheckTimeSupply }}</el-col>
- <el-col v-if="detail.merchantCheckCode" :span="8">商家对账编码:{{ detail.merchantCheckCode }}</el-col>
- <el-col v-if="detail.salesCheckCode" :span="8">销司对账编码:{{ detail.salesCheckCode }}</el-col>
- </el-row>
- <zj-table
- ref="tableEl"
- :is-drop="true"
- :columns="columns"
- :table-data="recordSelected"
- :table-attributes="{
- border: true
- }"
- />
- <el-row type="flex" style="margin: 20px 0">
- <el-col :span="2">备注: </el-col>
- <el-col
- ><el-input
- v-model="comment"
- type="textarea"
- :rows="2"
- placeholder="请输入备注"
- :maxlength="-1"
- :show-word-limit="false"
- :autosize="{ minRows: 2, maxRows: 4 }"
- />
- </el-col>
- </el-row>
- <span slot="footer">
- <el-button @click="onClose">取消</el-button>
- <el-button type="primary" @click="onSbumit">确定</el-button>
- </span>
- </el-dialog>
- </template>
- <script>
- import { ticketGoToReview } from '@/api/reconciliation'
- export default {
- props: {
- visible: {
- type: Boolean,
- default: false
- },
- recordSelected: {
- type: Array,
- default: () => []
- },
- detail: {
- type: Object,
- default: () => {
- return {}
- }
- }
- },
- data() {
- return {
- comment: ''
- }
- },
- computed: {
- columns() {
- return [
- {
- columnAttributes: {
- label: '订单类型',
- prop: 'orderType',
- width: 200
- },
- render: (h, { row }) => {
- const { orderType } = row
- const typeObj = {
- TOB: '商家机工程机类型',
- ALL: '所有类型,广州的订单统一 开单价',
- TOC: '佛山销售销售订单类型公司'
- }
- return <div>{typeObj[orderType]}</div>
- }
- },
- {
- columnAttributes: {
- label: '实际是否卸货',
- prop: 'isRealUnload',
- width: 200
- },
- render: (h, { row }) => {
-
- return (
- <el-select
- value={row.isRealUnload}
- onInput={e => (row.isRealUnload = e)}
- placeholder='请选择'
- clearable
- filterable
- size='mini'
- >
- {[
- { label: '是', value: 1 },
- { label: '否', value: 0 }
- ].map(k => {
- return <el-option key={k.value} label={k.label} value={k.value}></el-option>
- })}
- </el-select>
- )
- }
- },
- {
- columnAttributes: {
- label: '实际是否上楼',
- prop: 'isRealUpstairs',
- width: 200
- },
- render: (h, { row }) => {
-
- return (
- <el-select
- value={row.isRealUpstairs}
- onInput={e => (row.isRealUpstairs = e)}
- placeholder='请选择'
- clearable
- filterable
- size='mini'
- >
- {[
- { label: '是', value: 1 },
- { label: '否', value: 0 }
- ].map(k => {
- return <el-option key={k.value} label={k.label} value={k.value}></el-option>
- })}
- </el-select>
- )
- }
- },
- {
- columnAttributes: {
- label: '订单时间',
- prop: 'orderDate',
- width: 200
- }
- },
- {
- columnAttributes: {
- label: '运费结算系数',
- prop: 'coefficient',
- width: 200
- },
- render: (h, { row }) => {
- return (
- <el-input
- value={row.coefficient}
- onInput={e => (row.coefficient = e)}
- placeholder='可修改内容'
- size='mini'
- clearable
- ></el-input>
- )
- }
- },
- {
- columnAttributes: {
- label: '补贴结算系数',
- prop: 'subsidyCoefficient',
- width: 200
- },
- render: (h, { row }) => {
- return (
- <el-input
- value={row.subsidyCoefficient}
- onInput={e => (row.subsidyCoefficient = e)}
- placeholder='可修改内容'
- size='mini'
- clearable
- ></el-input>
- )
- }
- },
- {
- columnAttributes: {
- label: '账号对应物料数量',
- prop: 'materialNumber',
- width: 200
- },
- render: (h, { row }) => {
- return (
- <el-input
- value={row.materialNumber}
- onInput={e => (row.materialNumber = e)}
- placeholder='可修改内容'
- size='mini'
- clearable
- ></el-input>
- )
- }
- },
- {
- columnAttributes: {
- label: '物料开单价',
- prop: 'materialPrice',
- width: 200
- },
- render: (h, { row }) => {
- return (
- <el-input
- value={row.materialPrice}
- onInput={e => (row.materialPrice = e)}
- placeholder='可修改内容'
- size='mini'
- clearable
- ></el-input>
- )
- }
- },
- {
- columnAttributes: {
- label: '退货费用',
- prop: 'returnOrderCost',
- width: 200
- },
- render: (h, { row }) => {
- return (
- <el-input
- value={row.returnOrderCost}
- onInput={e => (row.returnOrderCost = e)}
- placeholder='可修改内容'
- size='mini'
- clearable
- ></el-input>
- )
- }
- },
- {
- columnAttributes: {
- label: '单价计算',
- prop: 'unitPrice',
- width: 200
- },
- render: (h, { row }) => {
- return (
- <el-input
- value={row.unitPrice}
- onInput={e => (row.unitPrice = e)}
- placeholder='可修改内容'
- size='mini'
- clearable
- ></el-input>
- )
- }
- },
- {
- columnAttributes: {
- label: '卸货上楼结算系数',
- prop: 'unloadUpstairsCoefficient',
- width: 200
- },
- render: (h, { row }) => {
- return (
- <el-input
- value={row.unloadUpstairsCoefficient}
- onInput={e => (row.unloadUpstairsCoefficient = e)}
- placeholder='可修改内容'
- size='mini'
- clearable
- ></el-input>
- )
- }
- }
- ]
- }
- },
- methods: {
- onClose() {
- this.comment = ''
- this.$emit('close')
- },
- onSbumit() {
- let ticketType = null
- let orderCode = null
- if (this.detail.merchantCheckCode) {
- ticketType = 'MERCHANT_CHECK'
- orderCode = this.detail.merchantCheckCode
- } else {
- ticketType = 'SALES_CHECK'
- orderCode = this.detail.salesCheckCode
- }
- ticketGoToReview({
- ticketType,
- orderCode,
- comment: this.comment,
- modifiedCostBillList: this.recordSelected
- }).then(res => {
- this.$message({
- type: 'success',
- message: '成功'
- })
- this.onClose()
- })
- }
- }
- }
- </script>
- <style lang="sass" scoped></style>
|