|
|
@@ -111,6 +111,12 @@
|
|
|
<el-option label="未设置" :value="0" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="580编码" prop="pharmacyCodeFilter">
|
|
|
+ <el-select v-model="queryParams.pharmacyCodeFilter" placeholder="请选择状态" clearable size="small">
|
|
|
+ <el-option label="已填写" :value="1" />
|
|
|
+ <el-option label="未填写" :value="0" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
@@ -191,6 +197,7 @@
|
|
|
<!-- <el-table-column label="店铺id" align="center" prop="storeId" width="120px"/>-->
|
|
|
<el-table-column label="商家ID" align="center" prop="merchantId" width="150px"/>
|
|
|
<el-table-column label="店铺ID" align="center" prop="storeSeq" width="150px"/>
|
|
|
+ <el-table-column label="580编码" align="center" prop="pharmacyCode" width="150px"/>
|
|
|
<el-table-column label="店铺名称" align="center" prop="storeName" width="120px"/>
|
|
|
<el-table-column label="机构全称" align="center" prop="fullName" width="120px"/>
|
|
|
<el-table-column label="店铺LOGO" align="center" prop="logoUrl" width="100px">
|
|
|
@@ -296,6 +303,13 @@
|
|
|
@click="handleErpInfo(scope.row)"
|
|
|
v-hasPermi="['his:storeErpInfo:edit']"
|
|
|
>设置ERP信息</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit-outline"
|
|
|
+ @click="handlePharmacyCode(scope.row)"
|
|
|
+ v-hasPermi="['his:store:edit:code']"
|
|
|
+ >设置编码</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
@@ -1207,6 +1221,20 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <el-dialog title="设置编码" :visible.sync="pharmacyCodeDialogVisible" width="500px" append-to-body :close-on-click-modal="false">
|
|
|
+ <el-form ref="pharmacyCodeForm" :model="pharmacyCodeForm" :rules="pharmacyCodeRules" label-width="120px">
|
|
|
+ <el-form-item label="店铺名称">
|
|
|
+ <el-input v-model="pharmacyCodeForm.storeName" disabled />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="580编码" prop="pharmacyCode">
|
|
|
+ <el-input v-model="pharmacyCodeForm.pharmacyCode" placeholder="请输入580编码/药店编码" maxlength="64" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitPharmacyCode" :loading="pharmacyCodeSubmitLoading">保 存</el-button>
|
|
|
+ <el-button @click="pharmacyCodeDialogVisible = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
<el-dialog
|
|
|
title="店铺资质消息提示"
|
|
|
@@ -1223,7 +1251,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listStore, getStore, delStore, addStore, updateStore, exportStore, refreshPasWod,exportFsStream, businessLicenseCheck, getStoreErpInfo, saveStoreErpInfo, enableStore, disableStore} from '@/api/hisStore/store'
|
|
|
+import { listStore, getStore, delStore, addStore, updateStore, exportStore, refreshPasWod,exportFsStream, businessLicenseCheck, getStoreErpInfo, saveStoreErpInfo, enableStore, disableStore, updatePharmacyCode } from '@/api/hisStore/store'
|
|
|
import storeDetails from '../components/storeDetails.vue';
|
|
|
import StoreDialog from '../components/StoreDialog.vue';
|
|
|
import {getCitys} from "@/api/store/city";
|
|
|
@@ -1272,6 +1300,19 @@ export default {
|
|
|
{ required: true, message: '请输入推荐收货地址', trigger: 'blur' }
|
|
|
]
|
|
|
},
|
|
|
+ // 药店编码弹窗
|
|
|
+ pharmacyCodeDialogVisible: false,
|
|
|
+ pharmacyCodeSubmitLoading: false,
|
|
|
+ pharmacyCodeForm: {
|
|
|
+ storeId: null,
|
|
|
+ storeName: '',
|
|
|
+ pharmacyCode: ''
|
|
|
+ },
|
|
|
+ pharmacyCodeRules: {
|
|
|
+ pharmacyCode: [
|
|
|
+ { required: true, message: '请输入580编码', trigger: 'blur' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
// 控制是否为查看模式(只读)
|
|
|
isViewMode: false,
|
|
|
// 店铺对话框相关
|
|
|
@@ -1361,6 +1402,7 @@ export default {
|
|
|
isAudit: null,
|
|
|
account: null,
|
|
|
hasErpInfo: null,
|
|
|
+ pharmacyCodeFilter: null,
|
|
|
daysDiffMin: null, // 添加最小剩余天数查询条件
|
|
|
daysDiffMax: null // 添加最大剩余天数查询条件
|
|
|
},
|
|
|
@@ -2326,6 +2368,37 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ /** 设置药店编码 */
|
|
|
+ handlePharmacyCode(row) {
|
|
|
+ this.pharmacyCodeForm = {
|
|
|
+ storeId: row.storeId,
|
|
|
+ storeName: row.storeName,
|
|
|
+ pharmacyCode: row.pharmacyCode || ''
|
|
|
+ };
|
|
|
+ this.pharmacyCodeDialogVisible = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if (this.$refs.pharmacyCodeForm) {
|
|
|
+ this.$refs.pharmacyCodeForm.clearValidate();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 提交药店编码 */
|
|
|
+ submitPharmacyCode() {
|
|
|
+ this.$refs.pharmacyCodeForm.validate(valid => {
|
|
|
+ if (!valid) return;
|
|
|
+ this.pharmacyCodeSubmitLoading = true;
|
|
|
+ updatePharmacyCode({
|
|
|
+ storeId: this.pharmacyCodeForm.storeId,
|
|
|
+ pharmacyCode: this.pharmacyCodeForm.pharmacyCode
|
|
|
+ }).then(() => {
|
|
|
+ this.msgSuccess('设置编码成功');
|
|
|
+ this.pharmacyCodeDialogVisible = false;
|
|
|
+ this.getList();
|
|
|
+ }).finally(() => {
|
|
|
+ this.pharmacyCodeSubmitLoading = false;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
//长期有效营业执照选择
|
|
|
switchChange(){
|
|
|
console.log(this.form.isBusinessLicensePermanent);
|