|
|
@@ -11,6 +11,7 @@
|
|
|
<i class="icon icon-table2"></i> 信息
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
+ <el-button type="primary" size="mini" style="margin-right: 5px" @click="showApplyTime" v-if="formData.InFlag != '3' && showBtn ">延长有效期</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" @click="reInput" v-if="formData.InFlag == '3'">确认重新准入</el-button>
|
|
|
<el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
|
|
|
<el-popover>
|
|
|
@@ -224,7 +225,53 @@
|
|
|
</goods-info>
|
|
|
</el-card>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
+ <el-dialog title="修改有效期" :visible.sync="dialogApplyTime" width="655px">
|
|
|
+ <el-dialog
|
|
|
+ width="40%"
|
|
|
+ title="内层 Dialog"
|
|
|
+ :visible.sync="innerVisible"
|
|
|
+ append-to-body>
|
|
|
+ <el-table :data="historyDatas">
|
|
|
+ <el-table-column property="BeforeDate" label="修改日期" width="150"></el-table-column>
|
|
|
+ <el-table-column property="BeforeDate" label="修改前" width="150"></el-table-column>
|
|
|
+ <el-table-column property="AfterDate" label="修改后" width="200"></el-table-column>
|
|
|
+ <el-table-column property="Remark" label="备注"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
+ <el-form label-width="80px" :model="formDataApplyTime" ref="formDataApplyTime">
|
|
|
+ <el-form-item label="有效期">
|
|
|
+ <el-date-picker v-model="formDataApplyTime.BeforeDate"
|
|
|
+ type="date"
|
|
|
+ format="yyyy 年 MM 月 dd 日"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择日期"
|
|
|
+ style="width: 100%"
|
|
|
+ readonly>
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="AfterDate" label="延长到" :rules="[{ required: true, message: '请选择日期', trigger: 'change' }]">
|
|
|
+ <el-date-picker v-model="formDataApplyTime.AfterDate"
|
|
|
+ type="date"
|
|
|
+ format="yyyy 年 MM 月 dd 日"
|
|
|
+ placeholder="选择日期"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="备注">
|
|
|
+ <el-input v-model="formDataApplyTime.Remark"
|
|
|
+ maxlength="500"
|
|
|
+ placeholder="请输入"
|
|
|
+ type="textarea"
|
|
|
+ style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" size="mini" style="display:block;margin:0 auto" @click="saveApplyTime">保存</el-button>
|
|
|
+ <!--<el-button type="primary" size="mini" @click="saveinnerVisible">修改记录</el-button>-->
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
<choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
:visible="chooseAuditorVisible"></choose-auditor>
|
|
|
</div>
|
|
|
@@ -250,6 +297,7 @@
|
|
|
import GoodsInfo from '@/components/oilsupplier/goodsinfo'
|
|
|
|
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
+ import catalogapi from '@/api/oilsupplier/oilcatalog'
|
|
|
|
|
|
export default {
|
|
|
|
|
|
@@ -279,6 +327,9 @@
|
|
|
|
|
|
data () {
|
|
|
return {
|
|
|
+ showBtn: false,
|
|
|
+ innerVisible: false,
|
|
|
+ dialogApplyTime: false,
|
|
|
delete_flat: true,
|
|
|
activeName: '0',
|
|
|
chooseAuditorVisible: false,
|
|
|
@@ -298,6 +349,7 @@
|
|
|
auditerOption: [], // 审批人
|
|
|
orgtreelist: [],
|
|
|
secOrganize: [],
|
|
|
+ historyDatas: [],
|
|
|
auditer: '',
|
|
|
auditerName: '',
|
|
|
serviceId: '',
|
|
|
@@ -314,6 +366,17 @@
|
|
|
label: 'Fullname',
|
|
|
children: 'children'
|
|
|
},
|
|
|
+ formDataApplyTime: {
|
|
|
+ Id: '',
|
|
|
+ SupplierId: '',
|
|
|
+ SupplierCertId: '',
|
|
|
+ SupplierTypeCode: '',
|
|
|
+ SupplierName: '',
|
|
|
+ CommercialNo: '',
|
|
|
+ BeforeDate: null,
|
|
|
+ AfterDate: null,
|
|
|
+ Remark: ''
|
|
|
+ },
|
|
|
formData: {
|
|
|
Id: '',
|
|
|
SupplierName: '',
|
|
|
@@ -456,8 +519,58 @@
|
|
|
this.initDatas()
|
|
|
}
|
|
|
this.Jurisdiction()
|
|
|
+ this.isAccess()
|
|
|
},
|
|
|
methods: {
|
|
|
+ isAccess () {
|
|
|
+ let params = {
|
|
|
+ RoleId: '10000203'
|
|
|
+ }
|
|
|
+ catalogapi.isAccess(params, this.$axios).then(res => {
|
|
|
+ this.showBtn = res.data
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ saveApplyTime () {
|
|
|
+ console.log(this.formDataApplyTime, 'formDataApplyTime')
|
|
|
+ this.$refs['formDataApplyTime'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ console.log(this.formDataApplyTime, 'formDataApplyTime')
|
|
|
+ apiCert.updataApplyTime(this.formData.CertId, this.formDataApplyTime, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.initDatas()
|
|
|
+ this.dialogApplyTime = false
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ saveinnerVisible () {
|
|
|
+ let params = {
|
|
|
+ SupplierCertId: this.formData.CertId
|
|
|
+ }
|
|
|
+ console.log(params, 'params')
|
|
|
+ apiCert.getApplyTimeList(params, this.$axios).then(res => {
|
|
|
+ this.historyDatas = res.data
|
|
|
+ console.log(res.data, '==========')
|
|
|
+ })
|
|
|
+ this.innerVisible = true
|
|
|
+ },
|
|
|
+ showApplyTime () {
|
|
|
+ this.dialogApplyTime = true
|
|
|
+ },
|
|
|
reInput () {
|
|
|
this.$confirm('确认可以重新提交准入申请', '提示', {
|
|
|
confirmButtonText: '确认',
|
|
|
@@ -467,7 +580,6 @@
|
|
|
let params = {
|
|
|
InFlag: '4'
|
|
|
}
|
|
|
- console.log(this.formData, 'this.formDatathis.formData')
|
|
|
apiCert.reInput(this.formData.Id, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.$message({
|
|
|
@@ -658,7 +770,13 @@
|
|
|
if (this.formData.Status != 0) {
|
|
|
this.add_flat = false
|
|
|
}
|
|
|
- console.log(this.add_flat)
|
|
|
+ this.formDataApplyTime.BeforeDate = res.data.ApplyTime
|
|
|
+ this.formDataApplyTime.AfterDate = res.data.ApplyTime
|
|
|
+ this.formDataApplyTime.SupplierId = res.data.Id
|
|
|
+ this.formDataApplyTime.CommercialNo = res.data.CommercialNo
|
|
|
+ this.formDataApplyTime.SupplierName = res.data.SupplierName
|
|
|
+ this.formDataApplyTime.SupplierCertId = parseInt(res.data.CertId)
|
|
|
+ this.formDataApplyTime.SupplierTypeCode = res.data.SupplierTypeCode
|
|
|
this.$refs['GoodsInfo'].CityAry = []
|
|
|
this.$refs['GoodsInfo'].CityAry.push(this.formData.Province)
|
|
|
this.$refs['GoodsInfo'].CityAry.push(this.formData.City)
|