修改台账/分单

szh_zidingyibiaoti
lilu 2 years ago
parent b52883b497
commit 70999ebc86

@ -13,7 +13,7 @@
<div class="title"> <div class="title">
<span class="left"></span> <span class="left"></span>
<span class="right"></span> <span class="right"></span>
<span class="tip">已显示数据列<b>拖动</b>调整显示顺序</span> <span class="tip">已显示数据列<b>拖动</b>调整显示顺序 <template v-if="maxNum!=0">, 30</template></span>
</div> </div>
<div class="label-box"> <div class="label-box">
<draggable v-model="fromLabel" animation="300" @start="onStart" @end="emitFromChange"> <draggable v-model="fromLabel" animation="300" @start="onStart" @end="emitFromChange">
@ -71,6 +71,10 @@ export default {
type: { type: {
type: String, type: String,
default: '' default: ''
},
maxNum: {
type: Number,
default: 0
} }
}, },
data() { data() {
@ -106,15 +110,16 @@ export default {
this.visible = false this.visible = false
}, },
addFrom(item, index) { addFrom(item, index) {
console.log(item) console.log(item, this.fromLabel.length)
if (this.maxNum !== 0 && this.fromLabel.length > (this.maxNum + 1)) {
this.$message.error(`最多选择${this.maxNum}`)
return false
}
if (this.type === 'from') { if (this.type === 'from') {
item.field = item.label.toLowerCase() item.field = item.label.toLowerCase()
this.fromLabel.push(item)
this.fromAllLabel.splice(index, 1)
} else if (this.type === 'table') {
this.fromLabel.push(item)
this.fromAllLabel.splice(index, 1)
} }
this.fromLabel.push(item)
this.fromAllLabel.splice(index, 1)
}, },
removeFrom(item, index) { removeFrom(item, index) {
this.fromAllLabel.push(item) this.fromAllLabel.push(item)

@ -112,6 +112,11 @@ export default {
defaultVal(nval, oval) { defaultVal(nval, oval) {
if (this.inEdit) { return false } if (this.inEdit) { return false }
this.value = nval this.value = nval
},
value (nval, oval) {
if (nval !== oval) {
console.log('=== 6. select 修改 - value变化 ===', nval, oval)
}
} }
}, },
mounted() { mounted() {
@ -304,6 +309,7 @@ export default {
} }
}, },
handleChange (op) { handleChange (op) {
console.log('=== 1. select 修改 - change ===', op)
// this.selectOpen = !this.selectOpen // this.selectOpen = !this.selectOpen
this.inEdit = true this.inEdit = true
setTimeout(() => { setTimeout(() => {
@ -325,7 +331,7 @@ export default {
}, },
getSelectFirst (e, canClick = true) { getSelectFirst (e, canClick = true) {
if (canClick) { if (canClick) {
document.getElementsByClassName(`select-input-${this.type}`)[0].click() this.$refs.selectView.$refs.vcSelect.$refs.arrow.click()
} else { } else {
this.$refs.selectView.$refs.vcSelect.focus() this.$refs.selectView.$refs.vcSelect.focus()
} }
@ -360,6 +366,7 @@ export default {
}, },
handleSearch (e) { handleSearch (e) {
// console.log('=== 2. select - search ===', e)
if (this.openSearch) { if (this.openSearch) {
this.inEdit = true this.inEdit = true
setTimeout(() => { setTimeout(() => {
@ -396,6 +403,7 @@ export default {
}, },
openSelect() { openSelect() {
// console.log('=== 3. select - openSelect ===', this.value)
if (!this.open) { if (!this.open) {
this.getSelectFirst('', false) this.getSelectFirst('', false)
} else { } else {
@ -403,9 +411,11 @@ export default {
} }
}, },
selectOption() { selectOption() {
// console.log('=== 4. select - selectOption ===', this.value)
this.open = false this.open = false
}, },
getSelectBlur () { getSelectBlur (e) {
// console.log('=== 5. select - getSelectBlur ===', e, this.defaultVal, this.value)
this.open = false this.open = false
} }
} }

@ -44,6 +44,7 @@
:details="bookingDetails" :details="bookingDetails"
:rules="basicRules" :rules="basicRules"
:inPageLoading="inPageLoading" :inPageLoading="inPageLoading"
isParent="parent"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></basicInfo> ></basicInfo>
<!-- 收发通信息 --> <!-- 收发通信息 -->
@ -51,6 +52,7 @@
ref="mailingInfo" ref="mailingInfo"
:details="bookingDetails" :details="bookingDetails"
:rules="mailingRules" :rules="mailingRules"
isParent="parent"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
@spliceMore="spliceMorefun" @spliceMore="spliceMorefun"
@pkgsEnCapital="pkgsEnCapitalFun" @pkgsEnCapital="pkgsEnCapitalFun"
@ -61,6 +63,7 @@
:details="bookingDetails" :details="bookingDetails"
:rules="cargoRules" :rules="cargoRules"
:moreStr="moreStr" :moreStr="moreStr"
isParent="parent"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></cargoInfo> ></cargoInfo>
<!-- 签单信息 --> <!-- 签单信息 -->
@ -68,6 +71,7 @@
ref="billInfo" ref="billInfo"
:details="bookingDetails" :details="bookingDetails"
:rules="billRules" :rules="billRules"
isParent="parent"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></billInfo> ></billInfo>
<!-- 备注信息 --> <!-- 备注信息 -->
@ -75,6 +79,7 @@
ref="remarksInfo" ref="remarksInfo"
:details="bookingDetails" :details="bookingDetails"
:rules="remarksRules" :rules="remarksRules"
isParent="parent"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></remarksInfo> ></remarksInfo>
<!-- 箱型 --> <!-- 箱型 -->
@ -82,6 +87,7 @@
ref="goodsTable" ref="goodsTable"
:details="bookingDetails" :details="bookingDetails"
:rules="tableRules" :rules="tableRules"
isParent="parent"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
@changeTotal="changeTotalFun" @changeTotal="changeTotalFun"
v-if="!inPageLoading" v-if="!inPageLoading"
@ -94,6 +100,7 @@
class="pane-box" class="pane-box"
:details="bookingDetails" :details="bookingDetails"
:rules="ediRules" :rules="ediRules"
isParent="parent"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></ediMore> ></ediMore>
</div> </div>
@ -138,8 +145,8 @@ import billInfo from './modules/billInfo'
import remarksInfo from './modules/remarksInfo' import remarksInfo from './modules/remarksInfo'
import goodsTable from './modules/goodsTable' import goodsTable from './modules/goodsTable'
import rightContent from './modules/rightContent' import rightContent from './modules/rightContent'
import ediMore from './components/ediMore' import ediMore from './modules/ediMore'
import sedOrder from './components/sedOrder' import sedOrder from './modules/sedOrder'
import { import {
BookingOrderGet, BookingOrderGet,

@ -489,9 +489,9 @@
</template> </template>
<script> <script>
import { XCard } from '@/components' import { XCard } from '@/components'
import inputView from './inputView' import inputView from '../components/inputView'
import selectView from './selectView' import selectView from '../components/selectView'
import datePickerView from './datePickerView' import datePickerView from '../components/datePickerView'
import { import {
DjyCustomerdetail, DjyCustomerdetail,
@ -533,6 +533,10 @@ export default {
inSave: { inSave: {
type: Boolean, type: Boolean,
default: false default: false
},
isParent: {
type: String,
default: ''
} }
}, },
data() { data() {

@ -376,9 +376,9 @@
</a-collapse> </a-collapse>
</template> </template>
<script> <script>
import inputView from './inputView' import inputView from '../components/inputView'
import selectView from './selectView' import selectView from '../components/selectView'
import datePickerView from './datePickerView' import datePickerView from '../components/datePickerView'
export default { export default {
name: '', name: '',
@ -403,6 +403,10 @@ export default {
inSave: { inSave: {
type: Boolean, type: Boolean,
default: false default: false
},
isParent: {
type: String,
default: ''
} }
}, },
data() { data() {

@ -118,9 +118,9 @@
</template> </template>
<script> <script>
import textareaView from './textareaView' import textareaView from '../components/textareaView'
import selectView from './selectView' import selectView from '../components/selectView'
import inputView from './inputView' import inputView from '../components/inputView'
let timer; let timer;
export default { export default {
@ -150,6 +150,10 @@ export default {
inSave: { inSave: {
type: Boolean, type: Boolean,
default: false default: false
},
isParent: {
type: String,
default: ''
} }
}, },
data() { data() {

@ -429,7 +429,7 @@
</div> </div>
</template> </template>
<script> <script>
import inputView from '../modules/inputView' import inputView from '../components/inputView'
let timer; let timer;
export default { export default {
components: { components: {
@ -451,6 +451,10 @@ export default {
inSave: { inSave: {
type: Boolean, type: Boolean,
default: false default: false
},
isParent: {
type: String,
default: ''
} }
}, },
data() { data() {

@ -764,10 +764,10 @@
</template> </template>
<script> <script>
import { XCard } from '@/components' import { XCard } from '@/components'
import inputView from './inputView' import inputView from '../components/inputView'
import textareaView from './textareaView' import textareaView from '../components/textareaView'
import selectView from './selectView' import selectView from '../components/selectView'
import datePickerView from './datePickerView' import datePickerView from '../components/datePickerView'
import { import {
BookingTemplateAdd BookingTemplateAdd
} from '@/api/modular/main/BookingLedger' } from '@/api/modular/main/BookingLedger'
@ -797,6 +797,10 @@ export default {
inSave: { inSave: {
type: Boolean, type: Boolean,
default: false default: false
},
isParent: {
type: String,
default: ''
} }
}, },

@ -38,6 +38,10 @@ export default {
inSave: { inSave: {
type: Boolean, type: Boolean,
default: false default: false
},
isParent: {
type: String,
default: ''
} }
}, },
data() { data() {

@ -58,6 +58,7 @@
:rules="basicRules" :rules="basicRules"
:ishd="true" :ishd="true"
:inSave="inSave" :inSave="inSave"
isParent="child"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></basicInfo> ></basicInfo>
<!-- 收发通信息 --> <!-- 收发通信息 -->
@ -66,6 +67,7 @@
:details="editDetails" :details="editDetails"
:rules="mailingRules" :rules="mailingRules"
:inSave="inSave" :inSave="inSave"
isParent="child"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
@pkgsEnCapital="pkgsEnCapitalFun" @pkgsEnCapital="pkgsEnCapitalFun"
></mailingInfo> ></mailingInfo>
@ -75,6 +77,7 @@
:details="editDetails" :details="editDetails"
:rules="cargoRules" :rules="cargoRules"
:inSave="inSave" :inSave="inSave"
isParent="child"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></cargoInfo> ></cargoInfo>
<!-- 签单信息 --> <!-- 签单信息 -->
@ -83,6 +86,7 @@
:details="editDetails" :details="editDetails"
:rules="billRules" :rules="billRules"
:inSave="inSave" :inSave="inSave"
isParent="child"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></billInfo> ></billInfo>
<!-- 备注信息 --> <!-- 备注信息 -->
@ -91,6 +95,7 @@
:details="editDetails" :details="editDetails"
:rules="remarksRules" :rules="remarksRules"
:inSave="inSave" :inSave="inSave"
isParent="child"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></remarksInfo> ></remarksInfo>
<!-- 箱型 --> <!-- 箱型 -->
@ -99,6 +104,7 @@
:details="editDetails" :details="editDetails"
:rules="tableRules" :rules="tableRules"
:inSave="inSave" :inSave="inSave"
isParent="child"
pType="secOrder" pType="secOrder"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></goodsTable> ></goodsTable>
@ -111,6 +117,7 @@
:rules="ediRules" :rules="ediRules"
:details="editDetails" :details="editDetails"
:inSave="inSave" :inSave="inSave"
isParent="child"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
v-if="!inPageLoading" v-if="!inPageLoading"
></ediMore> ></ediMore>
@ -129,14 +136,13 @@
</div> </div>
</template> </template>
<script> <script>
import sedOperationArea from '../modules/sedOperationArea' import sedOperationArea from './sedOperationArea'
import basicInfo from '../modules/basicInfo' import basicInfo from './basicInfo'
import mailingInfo from '../modules/mailingInfo' import mailingInfo from './mailingInfo'
import cargoInfo from '../modules/cargoInfo' import cargoInfo from './cargoInfo'
import billInfo from '../modules/billInfo' import billInfo from './billInfo'
import remarksInfo from '../modules/remarksInfo' import remarksInfo from './remarksInfo'
import goodsTable from '../modules/goodsTable' import goodsTable from './goodsTable'
// import basicItem from './basicItem'
import ediMore from './ediMore' import ediMore from './ediMore'
import rules from '../rules' import rules from '../rules'
import { BookingOrderSave } from '@/api/modular/main/BookingLedger' import { BookingOrderSave } from '@/api/modular/main/BookingLedger'
@ -178,7 +184,6 @@ export default {
billInfo, billInfo,
remarksInfo, remarksInfo,
goodsTable, goodsTable,
// basicItem,
ediMore ediMore
}, },
data() { data() {

@ -229,6 +229,7 @@
ref="setTableForm" ref="setTableForm"
:formData="formTableData" :formData="formTableData"
:formAllData="formMoreTableData" :formAllData="formMoreTableData"
:maxNum="30"
type="table" type="table"
@ok="submitTableForm" @ok="submitTableForm"
v-if="formMoreTableData" v-if="formMoreTableData"

Loading…
Cancel
Save