|
|
@@ -27,6 +27,7 @@
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="createJFAccessCardNo">生成准入编码</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="saveAccessCardNo">保存准入编码</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="confirm">确认入库</el-button>
|
|
|
+ <el-button type="warning" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="backStatus">退回</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplierstorage/techlist'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回
|
|
|
</el-button>
|
|
|
@@ -255,7 +256,22 @@
|
|
|
<el-button size="mini" type="primary" @click="AuditEntity">确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
+ <el-dialog title="退回原因" :visible.sync="dialogVisibleBack" width="520px">
|
|
|
+ <el-form ref="backForm" label-width="70px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="退回原因">
|
|
|
+ <el-input v-model="backRemark" type="textarea">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="mini" @click="dialogVisibleBack = false">取 消</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="backEntity">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
<choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
:visible="chooseAuditorVisible"></choose-auditor>
|
|
|
|
|
|
@@ -310,6 +326,8 @@
|
|
|
|
|
|
data () {
|
|
|
return {
|
|
|
+ backRemark: '',
|
|
|
+ dialogVisibleBack: false,
|
|
|
activeName: '1',
|
|
|
chooseAuditorVisible: false,
|
|
|
showReturn: 1,
|
|
|
@@ -486,9 +504,34 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ backEntity () {
|
|
|
+ let params = {
|
|
|
+ Status: '-7',
|
|
|
+ BackRemark: this.backRemark
|
|
|
+ }
|
|
|
+ apiCert.backStatus(this.formData.CertId, params, this.$axios).then(res => {
|
|
|
+ this.dialogVisibleBack = false
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ this.dialogVisibleBack = false
|
|
|
+ console.log(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ backStatus () {
|
|
|
+ this.dialogVisibleBack = true
|
|
|
+ },
|
|
|
saveAccessCardNo () {
|
|
|
apiCert.saveAccessCardNo(this.formData.Id, this.formData.CertId, this.formData.AccessCardNo, '03', this.$axios).then(res => {
|
|
|
- console.log(res.data, 'res.data')
|
|
|
if (res.data.code === 0) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
@@ -665,7 +708,6 @@
|
|
|
this.add_flat = false
|
|
|
}
|
|
|
this.formDataCert.WorkflowId = this.formData.WorkflowId
|
|
|
- console.log(this.formData)
|
|
|
this.$refs['TechInfo'].CityAry = []
|
|
|
this.$refs['TechInfo'].CityAry.push(this.formData.Province)
|
|
|
this.$refs['TechInfo'].CityAry.push(this.formData.City)
|