|
@@ -396,6 +396,23 @@
|
|
|
<el-button size="mini" type="primary" @click="wkSubmit">提 交</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog append-to-body title="生成货代" class="el-dialogDeep" :visible.sync="hdDialog" width="30%" top="30vh"
|
|
|
+ :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" @closed="hdClosed"
|
|
|
+ v-dialog-drag>
|
|
|
+ <avue-form v-model="hdForm" :option="hdOption">
|
|
|
+ <tempalte slot="operatorName">
|
|
|
+ <div style="display: flex;">
|
|
|
+ <dic-select v-model="hdForm.operatorName" placeholder="操作员" key="id" label="realName"
|
|
|
+ res="records" url="/blade-user/page" :filterable="true" :remote="true" dataName="realName"
|
|
|
+ @selectChange="dicChange('operatorName', $event)"></dic-select>
|
|
|
+ </div>
|
|
|
+ </tempalte>
|
|
|
+ </avue-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="mini" @click="hdDialog = false">取 消</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="hdSubmit">提 交</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
<dictbiz-dialog ref="dictbiz" :title="dicTitle" :code="dicCode" :parentId="parentId" @closed="getAllWorkDicts">
|
|
|
</dictbiz-dialog>
|
|
|
</div>
|
|
@@ -420,6 +437,8 @@ export default {
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
+ hdDialog: false,
|
|
|
+ hdForm: {},
|
|
|
dicTitle: null,
|
|
|
parentId: null,
|
|
|
dicCode: null,
|
|
@@ -427,6 +446,18 @@ export default {
|
|
|
wkForm: {
|
|
|
agentItemsRList: []
|
|
|
},
|
|
|
+ hdOption: {
|
|
|
+ menuBtn: false,
|
|
|
+ span: 24,
|
|
|
+ disabled: false,
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: '操作员',
|
|
|
+ prop: 'operatorName',
|
|
|
+ disabled: false,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
wkOption: {
|
|
|
menuBtn: false,
|
|
|
span: 8,
|
|
@@ -1455,6 +1486,13 @@ export default {
|
|
|
this.form.transactionMethodId = null
|
|
|
}
|
|
|
}
|
|
|
+ if (name == 'operatorName') {
|
|
|
+ if (row) {
|
|
|
+ this.hdForm.operatorId = row.id
|
|
|
+ } else {
|
|
|
+ this.hdForm.operatorId = null
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
rowDicChange(name, row, el) {
|
|
|
if (name == 'hsCode') {
|
|
@@ -1938,21 +1976,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if (name == '生成货代') {
|
|
|
- let obj = {
|
|
|
- ...this.form,
|
|
|
- agentItemsList: this.selectionList
|
|
|
- }
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: '加载中',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(255,255,255,0.7)'
|
|
|
- });
|
|
|
- generateFreightForwarder(obj).then(res => {
|
|
|
- this.$message.success("生成货代成功");
|
|
|
- }).finally(() => {
|
|
|
- loading.close();
|
|
|
- })
|
|
|
+ this.hdDialog = true
|
|
|
}
|
|
|
if (name == '生成申请付款') {
|
|
|
const loading = this.$loading({
|
|
@@ -2024,6 +2048,26 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ hdSubmit() {
|
|
|
+ let obj = {
|
|
|
+ ...this.form,
|
|
|
+ ...this.hdForm,
|
|
|
+ agentItemsList: this.selectionList,
|
|
|
+ }
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
+ generateFreightForwarder(obj).then(res => {
|
|
|
+ this.$message.success("生成货代成功");
|
|
|
+ this.hdDialog = false
|
|
|
+ this.getDetails(this.form.id)
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ },
|
|
|
wkSubmit() {
|
|
|
if (this.wkType == '尾款账单') {
|
|
|
generateBalancePaymentBill(this.wkForm).then(res => {
|
|
@@ -2049,6 +2093,9 @@ export default {
|
|
|
this.wkForm = this.$options.data().wkForm
|
|
|
this.wkType = null
|
|
|
},
|
|
|
+ hdClosed() {
|
|
|
+ this.hdForm = this.$options.data().hdForm
|
|
|
+ },
|
|
|
application() {
|
|
|
// if (this.form.downPayment != 1) return this.$message.error("未申请首款账单");
|
|
|
// if (this.form.balancePayment != 1) return this.$message.error("未申请尾款账单");
|