|
|
@@ -11,16 +11,18 @@
|
|
|
class="el-button--small-yh add-customer-btn"
|
|
|
style="right: 245px;"
|
|
|
type="primary"
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
>生成采购单</el-button>
|
|
|
<el-button
|
|
|
class="el-button--small-yh add-customer-btn"
|
|
|
- type="success" style="right: 140px;" @click="copyOrder">
|
|
|
+ type="success" style="right: 140px;" @click="copyOrder"
|
|
|
+ :disabled="detailData.seeDisabled">
|
|
|
复制新单
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
class="el-button--small-yh add-customer-btn"
|
|
|
type="primary"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="disabled || detailData.seeDisabled"
|
|
|
@click="editCustomer(false)"
|
|
|
>{{ form.id ? '确认修改' : '确认新增' }}
|
|
|
</el-button>
|
|
|
@@ -80,7 +82,7 @@
|
|
|
@saveColumn="saveColumn('goods')"
|
|
|
>
|
|
|
<template slot="code" slot-scope="{row,index}">
|
|
|
- <el-button type="text" size="mini" style="float: right" @click="commodityChoice(row)" :disabled="detailData.seeDisabled">选择</el-button>
|
|
|
+ <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="commodityChoice(row)" :disabled="detailData.seeDisabled">选择</el-button>
|
|
|
<span style="float: left;padding-top: 2px">{{ row.code }}</span>
|
|
|
</template>
|
|
|
<template slot="orderQuantity" slot-scope="{ row }">
|
|
|
@@ -117,6 +119,7 @@
|
|
|
type="text"
|
|
|
@click="rowDel(row, index)"
|
|
|
:disabled="detailData.seeDisabled"
|
|
|
+ v-if="!row.$cellEdit"
|
|
|
>删 除</el-button>
|
|
|
</template>
|
|
|
<template slot="menuLeft" slot-scope="{size}">
|
|
|
@@ -156,7 +159,7 @@
|
|
|
>
|
|
|
<template slot="code" slot-scope="{row,index}">
|
|
|
<span style="float: left;padding-top: 2px">{{ row.code }}</span>
|
|
|
- <el-button type="text" size="mini" style="float: right" @click="choice(row)" :disabled="detailData.seeDisabled">选择</el-button>
|
|
|
+ <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled">选择</el-button>
|
|
|
</template>
|
|
|
<template slot="corpId" slot-scope="{ row }">
|
|
|
<selectComponent v-if="row.$cellEdit" v-model="row.corpId"
|
|
|
@@ -171,8 +174,16 @@
|
|
|
size="small"
|
|
|
@click="rowCellTwo(row,index)"
|
|
|
:disabled="detailData.seeDisabled"
|
|
|
- >{{ row.$cellEdit ? '保存' : '修改' }}
|
|
|
+ >{{ row.$cellEdit ? '保 存' : '修 改 ' }}
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ type="text"
|
|
|
+ @click="rowDelProject(row, index)"
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
+ v-if="!row.$cellEdit"
|
|
|
+ >删 除</el-button>
|
|
|
</template>
|
|
|
<template slot="menuLeft" slot-scope="{size}">
|
|
|
<el-button type="primary"
|
|
|
@@ -195,7 +206,37 @@
|
|
|
@row-update="rowUpdateBankOfDeposit"
|
|
|
@row-del="rowDelBankOfDeposit"
|
|
|
:upload-after="uploadAfter"
|
|
|
- ></avue-crud>
|
|
|
+ ref="uploadCrud"
|
|
|
+ >
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ size="small"
|
|
|
+ @click.stop="$refs.uploadCrud.rowAdd()"
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
+ >上传</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ <template slot="menu" slot-scope="{ row, index }">
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ type="text"
|
|
|
+ @click="$refs.uploadCrud.rowEdit(row, index)"
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
+ >编 辑</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ type="text"
|
|
|
+ @click="rowDelBankOfDeposit(row, index)"
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
+ >删 除</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </avue-crud>
|
|
|
</basic-container>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
@@ -330,138 +371,6 @@
|
|
|
:disabled="tableDataCost.length !== 1">导入</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <!-- 打印-->
|
|
|
- <el-dialog
|
|
|
- title="打印单"
|
|
|
- append-to-body
|
|
|
- class="el-dialogDeep"
|
|
|
- :visible.sync="printVisible"
|
|
|
- width="100%"
|
|
|
- fullscreen
|
|
|
- :close-on-click-modal="false"
|
|
|
- :close-on-press-escape="false">
|
|
|
- <div class="print-div">
|
|
|
- <div
|
|
|
- style="
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: center;
|
|
|
- align-item: center;
|
|
|
- font-size: 24px;
|
|
|
- margin-bottom: 5px;
|
|
|
- width: 100%;
|
|
|
- text-align: center;
|
|
|
- "
|
|
|
- >
|
|
|
- <div><b>VITAL INDUSTRIAL GROUP LIMITED</b></div>
|
|
|
- <div>NO.37 DONGHAI ROAD, QINGDAO, CHINA</div>
|
|
|
- <div>TEL:0086-532-86019080 FAX:0086-532-86019080</div>
|
|
|
- <div>
|
|
|
- <b>COMMERCIAL INVOICE</b>
|
|
|
- <span style="float: right">ORIGINAL</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="print_table" style="display: flex">
|
|
|
- <table
|
|
|
- border="0"
|
|
|
- cellspacing="0"
|
|
|
- cellpadding="0"
|
|
|
- style="width: 100%; line-height: 30px"
|
|
|
- >
|
|
|
- <tr>
|
|
|
- <td colspan="5" rowspan="3">MESSERS:</td>
|
|
|
- <td colspan="2">INVOICE NO.</td>
|
|
|
- <td colspan="3"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="2">DATE</td>
|
|
|
- <td colspan="3"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="2">INCOTERM .</td>
|
|
|
- <td colspan="3"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="5">PI NO.:</td>
|
|
|
- <td colspan="2">DELIVERY PORT</td>
|
|
|
- <td colspan="3"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td rowspan="2">NO.</td>
|
|
|
- <td rowspan="2">DESCRIPTION</td>
|
|
|
- <td>THICK</td>
|
|
|
- <td>LENGTH</td>
|
|
|
- <td>WIDTH</td>
|
|
|
- <td rowspan="2">SHEETS</td>
|
|
|
- <td rowspan="2">CRATES</td>
|
|
|
- <td>UNIT PRICE</td>
|
|
|
- <td>TOTAL</td>
|
|
|
- <td>T. AMOUNT</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>mm</td>
|
|
|
- <td>mm</td>
|
|
|
- <td>mm</td>
|
|
|
- <td>US$/M²</td>
|
|
|
- <td>M²</td>
|
|
|
- <td>US$</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>1</td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2</td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>3</td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="9" style="text-align: right">FUMIGATION COST:</td>
|
|
|
- <td></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="9" style="text-align: right">INSURANCE:</td>
|
|
|
- <td></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="9" style="text-align: right">TOTAL:</td>
|
|
|
- <td>0.00</td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- <div class="print-footer" style="margin-top: 8px">
|
|
|
- <div style="font-weight: bold">TOTAL AMOUNT: U.S. DOLLARS NINE THOUSAND FORTY SIX CENTS TWENTY FIVE ONLY.
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -1043,10 +952,10 @@ export default {
|
|
|
this.queryData(this.detailData.id)
|
|
|
}
|
|
|
if (this.detailData.seeDisabled) {
|
|
|
- this.bankOfDeposit.column.forEach(item => {
|
|
|
- item.editDisabled = true
|
|
|
- item.addDisabled = true
|
|
|
- })
|
|
|
+ // this.bankOfDeposit.column.forEach(item => {
|
|
|
+ // item.editDisabled = true
|
|
|
+ // item.addDisabled = true
|
|
|
+ // })
|
|
|
}
|
|
|
if (this.detailData.copyId) {
|
|
|
this.queryData(this.detailData.copyId, true)
|