|
@@ -4,6 +4,42 @@
|
|
|
class="supplierDetail-main"
|
|
|
v-if="powers && powers.length > 0 && powers.some((item) => item == '007')"
|
|
|
>
|
|
|
+ <show-data-table
|
|
|
+ style="padding: 10px 0 5px 0"
|
|
|
+ :newTime="newTime"
|
|
|
+ v-if="newTime !== '' && (queryType === 'view' || queryType === 'edit')"
|
|
|
+ :sitem="sitem"
|
|
|
+ :columns="editColumns"
|
|
|
+ >
|
|
|
+ <template slot="status">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ :type="sitem.status == '0' ? 'warning' : ''"
|
|
|
+ v-text="
|
|
|
+ (statusOptions.find((item) => item.id == sitem.status) || {})
|
|
|
+ .label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+ <template slot="ocr_status">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ :type="
|
|
|
+ sitem.ocr_status == '0'
|
|
|
+ ? 'info'
|
|
|
+ : sitem.ocr_status == '1'
|
|
|
+ ? 'primary'
|
|
|
+ : sitem.ocr_status == '2'
|
|
|
+ ? 'danger'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
+ v-text="
|
|
|
+ (ocr_status.find((item) => item.id == sitem.ocr_status) || {})
|
|
|
+ .label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+ </show-data-table>
|
|
|
<el-tabs v-model="activeTabs">
|
|
|
<el-tab-pane label="新建供应商" name="0" v-if="queryType === 'add'">
|
|
|
<base-form
|
|
@@ -82,6 +118,46 @@ export default {
|
|
|
size: "small",
|
|
|
activeTabs: "1",
|
|
|
activeNames: ["0", "1"],
|
|
|
+ editColumns: [
|
|
|
+ {
|
|
|
+ prop: "code",
|
|
|
+ label: "供应商编号",
|
|
|
+ span: 6,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "status",
|
|
|
+ label: "使用状态",
|
|
|
+ _slot_: "status",
|
|
|
+ span: 4,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "ocr_status",
|
|
|
+ label: "执照识别状态",
|
|
|
+ _slot_: "ocr_status",
|
|
|
+ span: 5,
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: "creater",
|
|
|
+ label: "创建人",
|
|
|
+ span: 4,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "addtime",
|
|
|
+ label: "创建时间",
|
|
|
+ span: 5,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ // 状态
|
|
|
+ statusOptions: [
|
|
|
+ { id: "0", label: "禁用" },
|
|
|
+ { id: "1", label: "启用" },
|
|
|
+ ],
|
|
|
+ ocr_status: [
|
|
|
+ { id: "0", label: "未上传" },
|
|
|
+ { id: "1", label: "识别成功" },
|
|
|
+ { id: "2", label: "识别失败" },
|
|
|
+ ],
|
|
|
newTime: "",
|
|
|
loading: false,
|
|
|
queryType: "",
|