|
|
@ -7,11 +7,8 @@ |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<!--start 添加修改按钮--> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleCreate()" |
|
|
|
>保存 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleCreate()">保存</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交</el-button> |
|
|
|
</div> |
|
|
|
<!--end 添加修改按钮--> |
|
|
|
<!--end 详情按钮--> |
|
|
@ -35,11 +32,8 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="money" label="调出分公司"> |
|
|
|
<el-select v-model="temp.callOutOrgName" placeholder="请选择" clearable class="addinputw" |
|
|
|
@change="callOutOrgSidChange" |
|
|
|
:disabled="dialogStatus == 'edit'"> |
|
|
|
<el-option v-for="item in useOrg_list" :key="item.sid" :label="item.name" |
|
|
|
:value="item.name"/> |
|
|
|
<el-select v-model="temp.callOutOrgName" placeholder="请选择" clearable class="addinputw" @change="callOutOrgSidChange" :disabled="dialogStatus == 'edit'"> |
|
|
|
<el-option v-for="item in useOrg_list" :key="item.sid" :label="item.name" :value="item.name"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -58,9 +52,7 @@ |
|
|
|
<el-table-column align="center" fixed label="序号" type="index" width="50"/> |
|
|
|
<el-table-column label="操作" fixed align="center" width="90" class-name="small-padding fixed-width"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="mini" |
|
|
|
type="danger" |
|
|
|
@click="dataDelete(scope.row,scope.$index,list[scope.$index])">删除</el-button> |
|
|
|
<el-button size="mini" type="danger" @click="dataDelete(scope.row,scope.$index,list[scope.$index])">删除</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column width="190" label="车型" align="center"> |
|
|
@ -74,7 +66,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column width="200" label="合格证信息" align="center"> |
|
|
|
<template slot-scope="scope" @click=""> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.certificate" placeholder="请输入" class="addinputw"/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -90,19 +82,14 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column width="200" label="发票类型" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- <span>{{ scope.row.invoiceTypeValue }}</span>--> |
|
|
|
<el-select v-model="scope.row.invoiceTypeKey" placeholder="请选择" clearable class="addinputw" |
|
|
|
@change="invoiceTypeChange(scope.row,scope.row.invoiceTypeKey)" |
|
|
|
:disabled="scope.row.isAvailable || dialogStatus == 'edit'"> |
|
|
|
<el-option v-for="item in invoiceType_list" :key="item.dictKey" :label="item.dictValue" |
|
|
|
:value="item.dictKey"/> |
|
|
|
<el-select v-model="scope.row.invoiceTypeKey" placeholder="请选择" clearable class="addinputw" @change="invoiceTypeChange(scope.row,scope.row.invoiceTypeKey)" :disabled="scope.row.isAvailable || dialogStatus == 'edit'"> |
|
|
|
<el-option v-for="item in invoiceType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column width="130" label="开票金额" align="center"> |
|
|
|
<template slot-scope="scope"><!-- 由发票类型决定,增值税票:开票金额=内销价格 --> |
|
|
|
<el-input |
|
|
|
v-model="scope.row.invoiceTypeKey == '02' ? scope.row.witPinMoney :scope.row.invoicinMoney" |
|
|
|
<el-input v-model="scope.row.invoiceTypeKey == '02' ? scope.row.witPinMoney :scope.row.invoicinMoney" |
|
|
|
placeholder="请输入" class="addinputw" |
|
|
|
:disabled="scope.row.invoiceTypeKey == '02'" |
|
|
|
@keyup.native="scope.row.invoicinMoney = oninput(scope.row.invoicinMoney,2)" |
|
|
@ -111,17 +98,13 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column width="180" label="开票单位" align="center"> |
|
|
|
<template slot-scope="scope"><!-- 由发票类型决定,增值税票:开票单位=调入公司 --> |
|
|
|
<el-input |
|
|
|
v-model="scope.row.invoiceTypeKey == '02' ? temp.callInOrgName :scope.row.invoicinCompanyName" |
|
|
|
placeholder="请输入" class="addinputw" |
|
|
|
:disabled="scope.row.invoiceTypeKey == '02'"/> |
|
|
|
<el-input v-model="scope.row.invoiceTypeKey == '02' ? temp.callInOrgName :scope.row.invoicinCompanyName" placeholder="请输入" class="addinputw" :disabled="scope.row.invoiceTypeKey == '02'"/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column width="180" label="开票信息图片" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="upload_img"> |
|
|
|
<upload_diaoche ref="uploadMoreImg" v-model="imgList" bucket="map" |
|
|
|
:upload-data="{type:'0001',sid: scope.row.purchaseSid}"/> |
|
|
|
<upload_diaoche ref="uploadMoreImg" v-model="imgList" bucket="map" :upload-data="{type:'0001',sid: scope.row.purchaseSid}"/> |
|
|
|
</div> |
|
|
|
<el-button size="mini" type="primary" @click="open(scope.row)">查看</el-button> |
|
|
|
</template> |
|
|
@ -152,17 +135,15 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<diaochecheliang-list ref="xuanChe" v-show="isXuanche === true" @handleVehicle="selectVehicle" |
|
|
|
@doback="resetState"/> |
|
|
|
<diaochecheliang-list ref="xuanChe" v-show="isXuanche === true" @handleVehicle="selectVehicle" @doback="resetState"/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import diaochecheliangList from '@/views/supplychain/diaochekaipiaoshenqingguanli/relation/diaochecheliangList' |
|
|
|
import upload_diaoche from '@/components/uploadFile/upload_diaoche' |
|
|
|
import { getPathSidByUserSid, fetchBySid, getListOrgByBrand } from '@/api/cheliang/dictcommons' |
|
|
|
import { getOrgSidByPath, fetchBySid, getListOrgByBrand, typeValues } from '@/api/cheliang/dictcommons' |
|
|
|
import { fetchDetailsBySid, save, selByLinkSid, submitSunInv } from '@/api/supplychain/diaochekaipiaoshenqing.js' |
|
|
|
import { typeValues } from '@/api/supplychain/yancheguanli' |
|
|
|
import req from '@/api/kucunguanli/changjiachuku' |
|
|
|
|
|
|
|
export default { |
|
|
@ -178,8 +159,6 @@ export default { |
|
|
|
dialogStatus: '', |
|
|
|
dialogVisible: false, |
|
|
|
dialogUrl: [], |
|
|
|
useOrg: '', |
|
|
|
useOrgName: '', |
|
|
|
index: 0, |
|
|
|
list: [], |
|
|
|
vehicleList: [], |
|
|
@ -200,6 +179,7 @@ export default { |
|
|
|
useOrgSid: '', |
|
|
|
createOrgSid: '', |
|
|
|
nodeState: '', |
|
|
|
orgPath: '', |
|
|
|
baseShuntingInvoicinApplyeVehs: [] |
|
|
|
}, |
|
|
|
rules: { |
|
|
@ -270,19 +250,16 @@ export default { |
|
|
|
}, |
|
|
|
// 根据登陆人sid查询分公司 |
|
|
|
getPathSid() { |
|
|
|
const userSid = window.sessionStorage.getItem('userSid') |
|
|
|
getPathSidByUserSid({ userSid: userSid }).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.useOrg = res.data |
|
|
|
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.temp.createOrgSid = res.data |
|
|
|
this.temp.callInOrgSid = res.data |
|
|
|
fetchBySid(this.useOrg).then((resp) => { |
|
|
|
fetchBySid(res.data).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.useOrgName = resp.data.name |
|
|
|
this.temp.callInOrgName = this.useOrgName |
|
|
|
this.temp.callInOrgName = resp.data.name |
|
|
|
} |
|
|
|
}) |
|
|
|
getListOrgByBrand(this.useOrg).then((respsone) => { |
|
|
|
getListOrgByBrand(res.data).then((respsone) => { |
|
|
|
if (respsone.success) { |
|
|
|
this.useOrg_list = respsone.data |
|
|
|
} |
|
|
|